Some Python3 related fixes.
Merge pull request #21 from anntzer/py3fixes

Some Python3 related fixes.