correct name for basestring in Py3 to 'str' (not 'unicode')