Remove explicit inheritance from object.

It's not needed with Python 3.