[fix] python3: basestring -> string_instance