getter = [(lambda x=x: getattr(obj, x)) for x in ['prop1', 'prop2', 'prop3']]
setter = [(lambda v, x=x: setattr(obj, x, v)) for x in ['prop1', 'prop2',
    'prop3']]
How can I store a list of properties (not their values)?