Use vars(my_object_name) to obtain a dictionary of the object's attributes.
vars(my_object_name)
Note that you can get the same information by inspecting my_object_name.__dict__.
my_object_name.__dict__