BUG: basestring not defined on PY3
Merge pull request #767 from cgohlke/patch-1

BUG: basestring not defined on PY3