Actually `type` is kind of magical, it's both a function and a class:

    >>> class C(object): pass
    ... 
    >>> type(C) is type
    True