NameError: global name 'basestring' is not defined
The following is common enough to be used as an early warning system for code that is not Python 3 compatible.
NameError: global name 'basestring' is not defined
This can be read as “a Python 3 interpreter is attempting to run code that is not Python 3 compatible”.