def isclass(object):
 return isinstance(object, (type, types.ClassType))

def isclass ( object ) : return isinstance ( object , ( type , types . ClassType ) )
returns true if and only if the specified object is a type .