def __init__(self, list, attrs=None):
    self.list = list
    if attrs:
        for (name, value) in attrs.iteritems():
            setattr(self, name, value)
def __init__(self, list, attrs=None):
    self.list = list
    if attrs:
        for (name, value) in attrs.iteritems():
            setattr(self, name, value)