fix str/byte issue in python 3
Merge pull request #214 from wb14123/py3-str

fix str/byte issue in python 3