How do I update an object's members using a dict?,"setattr(foo, key, value)"