def findall_containing_string(list, string, inelement = False):
    """
    Description:
        Find all elements containing a substring and return those elements.
    Input:
        list - list object
        string - string to look for
        invert - if True, find all that do not contain string
    """
    
    # return updated list (not) containing the substring
    if inelement:
        return [element for element in list if string in element]
    else:
        return [element for element in list if string not in element]