def fuzzy_distance(word, words): return sorted(((w, fuzz.ratio(word, w)) for w in words), key=lambda e: -e[1])