def isclass(object):
    return isinstance(object, types.ClassType) or hasattr(object, '__bases__')
Return true if the object is a class.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/isclass