Even more python3 fixes.
Merge pull request #42 from PhilipHomburg/python3-byte-str-fixes

Even more python3 fixes.