python-ly compatibility with Python 3

Now it installs without errors using Python 2.6, 2.7, 3.2, 3.3.