Working dumb_tty.py and functional command_mode.py