Changed basestring to six.string_types