py3 breakage on basestring
Merge pull request #126 from arrrrr/master

Python 3 doesn't have str.decode