Use print function
Python 2/3 StringIO compatibility
Fix sys.version_info lookup for python 2
Add comments about pyflakes appeasement
Merge pull request #37 from patricklucas/python3_misc

Miscellaneous Python 3 compatibility fixes