more python3 fixes
Merge pull request #2 from ChrisBeaumont/fix-python3

more python3 fixes