fix basestring in python 3
Merge pull request #59 from flisky/py3-fix

fix basestring in python 3