def first_index(keys, key_part):
    """Find first item in iterable containing part of the string

    Parameters
    ----------
    keys : Iterable[str]
        Iterable with strings to search through
    key_part : str
        String to look for

    Returns
    -------
    int
        Returns index of first element in keys containing key_part, 0 if not found.
    """
    for i, key in enumerate(keys):
        if key_part in key:
            return i
    return 0