Find a best fuzzy match for a string
You should take advantage of the key argument to max():


  The key argument specifies a one-argument ordering function like that used for list.sort().


best_match = max(names, key=lambda name: fuzz.ratio(name_to_match, name))