def findSubstringInList(substr, the_list):
    """Returns a list containing the indices that a substring was found at.

    Uses a generator to quickly find all indices that str appears in.

    Args:
        substr (str): the sub string to search for.
        the_list (List): a list containing the strings to search.

    Returns:
        tuple - containing:
            * a list with the indices that the substring was found in 
                (this list can be empty if no matches were found).
            * an integer containing the number of elements it was found in.
    """
    indices = [i for i, s in enumerate(the_list) if substr in s]
    return indices, len(indices)