Python code for the post on the Levenshtein metric and string comparisons