def field_match(section, field):
    '''field_match(None, "Name") -> (GN_ENTRY_NAME, 0)
    returns None when not found'''
    # naive linear scan of patterns
    for ((s, f), (e, n)) in FIELD_PAIR:
        if field == f and (s == None or s == section):
            return (e, n)
    else: # not found
        return None
field_match(None, "Name") -> (GN_ENTRY_NAME, 0)
    returns None when not found
recipes/Python/466179_Copy_gmailcom_contacts_onyour_mobile_phone/recipe-466179.py