When programming in PHP , normally if you want to know the structure and value of all elements in an object you use :

In python just type
print vars(variable_name)

you will get the same result. Good luck !

Anyway, if you want to know type of a variable in Python just type

print type(variable_name)