Working towards Py3k compatibility, and for it to work on Heroku