Use _compat.text_type
Fix syntax error.
Merge pull request #8 from methane/master

Use _compat.text_type