how to check attributes of an object in python code example Example: python get attributes of object getattr(object, 'attribute_name')