pip install python-Levenshtein >>> from Levenshtein import distance as lev >>> lev('party', 'park') 2