Morse Code decoder in Python