Better Python 2 support

Properly inherit from the object type.