Added pyretic_switch.py to fix bug

Added a new file to replace the old pyretic_switch.py code which
was broken
Small bug fix for pyretic_switch.py code
Merge pull request #4 from ben-jones/assignment-7-pyretic-switch-fix

Added pyretic_switch.py to fix bug