def get_indexes_from_list(lst, find, exact=True):
    """
    Helper function that search for element in a list and
    returns a list of indexes for element match
    E.g.
    get_indexes_from_list([1,2,3,1,5,1], 1) returns [0,3,5]
    get_indexes_from_list(['apple','banana','orange','lemon'], 'orange') -> returns [2]
    get_indexes_from_list(['apple','banana','lemon',['orange', 'peach']], 'orange') -> returns []
    get_indexes_from_list(['apple','banana','lemon',['orange', 'peach']], ['orange'], False) -> returns [3]

    Parameters
    ----------
    lst: list
        The list to look in
    find: any
        the element to find, can be a list
    exact: bool
        If False then index are returned if find in lst-item otherwise
        only if find = lst-item

    Returns
    -------
    list of int

    """
    if exact == True:
        return [index for index, value in enumerate(lst) if value == find]
    else:
        if isinstance(find,list):
            return [index for index, value in enumerate(lst) if set(find).intersection(set(value))]
        else:
            return [index for index, value in enumerate(lst) if find in value]