Update morse.py

Restructured to be compatible with how Python runs programs