Tentative Python 3 support.

Just to show that Python 3 support isn't that complicated. ;-)