[TSI1] Use bytes literal
[TSI1] use tobytes()
Merge pull request #198 from moyogo/py3tsi1

[TSI3] use bytes literal and tobytes()