Fixed bugs in levenshtein.py and generate_morse.m files