added python-only levenshtein distance