ENH #4163 Fixed missing basestring import for py3.3 compat