def _match_k_in_list(list1, list2, match_key='name'):
    """Matches or aligns the values of a given key in two lists of dicts"""
    matching_list = []
    for val1 in list1:
        for val2 in list2:
            if val1[match_key] == val2[match_key]:
                matching_list.append([val1, val2])
    return matching_list
