My friend and I are setting up a string of LEDs that are controlled by the gpio pins on our raspberry pi. We switch the colors of the LEDs by running .py scripts that change which pins are on and off.
To change the script we use an ssh client with the command "sudo python xxxxxx.oh" when xxxxxx is the color that we want which we named each py file.
Recently when we disconnect the ssh client on our smart phone the pi reverts to one the .py files.
On a related note when we run a script with a blinking effect we have to ctrl+z to exit it and run a new script. Will provide more info if needed.