split Damerau-Levenshtein off into separate function
disabled a few more pylint warnings (pylint 9.92)