Merge pull request #40 from PhilipHomburg/python3-byte-str-fixes

For python3, explictly decode a byte array as UTF-8.
More fixes for python3.