Use string_types instead of basestring

... in order to get python 3 compatibility
Merge pull request #1 from simonpanay/patch-1

Use string_types instead of basestring