basestring is not in py3