basestring -> string_types (PY3 fix)