Find a matching element in a list.

def _find_match(ele, lst):
    '''
    Find a matching element in a list.
    '''
    for _ele in lst:
        for match_key in _MATCH_KEYS:
            if _ele.get(match_key) == ele.get(match_key):
                return ele