def is_type(obj):
    'Returns True is obj is a reference to a type.\n\n    >>> is_type(1)\n    False\n\n    >>> is_type(object)\n    True\n\n    >>> class Klass: pass\n    >>> is_type(Klass)\n    True\n    '
    return isinstance(obj, class_types)
Returns True is obj is a reference to a type.

>>> is_type(1)
False

>>> is_type(object)
True

>>> class Klass: pass
>>> is_type(Klass)
True
def is_type(obj):
    'Returns True is obj is a reference to a type.\n\n    >>> is_type(1)\n    False\n\n    >>> is_type(object)\n    True\n\n    >>> class Klass: pass\n    >>> is_type(Klass)\n    True\n    '
    return isinstance(obj, class_types)