how to get object class name in python code example Example: python class name instance.__class__.__name__