Use new-style class syntax for Python 2 support.