Fix #203: replace basestring by six.string_types