how to get class name by method object python code example Example: python get type class name type(x).__name__