Fixed the switch-input.py script to actually work.