def isclass(object):
    """Return true if the object is a class.
    Class objects provide these attributes:
        __doc__         documentation string
        __module__      name of module in which this class was defined"""
return isinstance(object, type)
How to check whether a variable is a class or not?