You can get the __name__ attribute of the class:
>>> type(ham).__name__
'eggs'
(Here using the type() builtin to get the class).
You can get the __name__ attribute of the class:
>>> type(ham).__name__
'eggs'
(Here using the type() builtin to get the class).