def compare_lists(list1, name1, list2, name2):
    """compare two lists and check for different or missing entries
       print out missing or different entries in list 2 compared to list 1

        Parameters
        ----------
        list1: list 
        name1: str - name to be printed in comparison
        list2: second list
        name2: str - name to be printed in comparison

        Returns
        -------
        passed: boolean,  returns True if files match
    """
    no_match = [x for x in list2 if x not in list1]
    missing = [x for x in list1 if x not in list2]
    passed = True
    if len(no_match) > 0:
        for x in no_match:
            print('{0} is in {2} but not in {1}'.format(x, name1, name2))
            passed = False
    elif len(missing) > 0:
        for x in missing:
            print('{0} is missing in {2} compared to {1}'.format(x, name1, name2))
            passed = False
    else:
        print('lists match: {0}, {1}'.format(name1, name2))
    return passed