Do not use old-style classes

Old-style classes have somwhat surprising properties and really shouldn't be used anymore.
Introduce a debugging function

As a side-effect, the code is now syntactically compatible with Python 3.
Convert tabs to spaces

Run  make test  to test for PEP8 compatibility!