def _is_list_of_str(l):
    return isinstance(l, list) and all(_is_str(e) for e in l)