def filter_list_by_prefix(_list, prefix, negation: bool = False):
    """
    filter out items from a list of strings based on a prefix. negation=True returns the
    strings which do not contain the prefix.
    :param _list: list of strings to filter
    :param prefix: substring to search for
    :param negation: pass True if you want strings which don't contain the prefix
    :return: filtered list
    """
    if negation:
        return [item for item in _list if not item.startswith(prefix)]
    else:
        return [item for item in _list if item.startswith(prefix)]