>>> # Using Python 2
>>> class old_style(): # doesn't inherit from object
>>> class new_style(object): # does inherit from object
>>> old_object = old_style()
>>> new_object = new_style()
>>> type(old_object) == old_object.__class__
>>> type(new_object) == new_object.__class__
For the inquisitive, new-style classes unified the concept of
typein Python 2.2. For a complete description, check out Guido's essay on the topic, circa 2002.
Merry Guido-mas, and may you only find new-style classes under your AST.