Python 3 compatibility and more printing

Runs on Python 3.4 for Windows. Probably broken on Python 2 again
though. Cleaned up the list of duplicates at the bottom.