added new python file for switch