removing python edit distance