Return True if the object is a class, whether built-in or created in Python code.
inspect.isclass(object)