Python update object from dictionary,"setattr(self, key, value)"