use new-style python classes

https://www.python.org/doc/newstyle/