def in_notin(list1, list2):
    """Find entries in the first list that are not in the second list."""

    set2 = set()
    for val in list2:
        set2.add(val)

    out_list = []
    for val in list1:
        if val not in set2:
            out_list.append(val)

    return out_list