string_types <-> basestring