python find out attributes of an object code example
Example 1: python get attributes of object
getattr(object, 'attribute_name')
Example 2: python get attributes of object
field_name = "fullName"
print getattr(user, field_name) # prints content of user.fullName