More fixes for python3.
Merge pull request #41 from PhilipHomburg/python3-byte-str-fixes

More fixes for python3.