Fixed problem with Python3 and basestring.
Merge pull request #21 from jgeewax/patch-1

Fixed problem with Python3 and basestring.