Use string_types and not basestring