prev_cost variable is never used https://github.com/toastdriven/pylev/blob/700700ec1b3f637ef1a59bb46f1b2176def2886d/pylev/damerau.py#L44