conditionally import levenshtein