проверить строку с использованием шести библиотечного питона

from six import string_types
isinstance(s, string_types)
Kind Kangaroo