def isclass(object):
    if sys.version_info[0] < 3:
        return isinstance(object, types.ClassType) or hasattr(object, '__bases__')
    else:
        return isinstance(object, type) or hasattr(object, '__bases__')
Return true if the object is a class.
dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py/isclass