refactor rpi_switch.py