added python version of js morse code