Trivial fixes for Py3 compatibility
Merge pull request #6 from Rosuav/py3fixes

Trivial fixes for Py3 compatibility