Yes, there is reset button on the side of the panel.
Follow the below steps to restore the device settings to factory defaults.
- power off the device
- press and hold the reset button with non conductive material which is not sharp
- the status LED's blinks in the pattern of 1-5-1
- after 30 secs release the reset button
- On some models the status LED blinks in the pattern of 1-1-1
But you can just reboot the device to get rid of python program.