Morse Code Translator in Python