def extractOne(query, choices, processor=default_processor, scorer=default_scorer, score_cutoff=0):
 best_list = extractWithoutOrder(query, choices, processor, scorer, score_cutoff)
 try:
  return max(best_list, key=(lambda i: i[1]))
 except ValueError:
  return None

def extractOne ( query , choices , processor = default_processor , scorer = default_scorer , score_cutoff = 0 ) : best_list = extractWithoutOrder ( query , choices , processor , scorer , score_cutoff ) try : return max ( best_list , key = ( lambda i : i [ 1 ] ) ) except ValueError : return None
find the single best match above a score in a list of choices .