**System Information**
Windows 8 x86_64, Intel embedded graphis
**Blender Version**
Broken: (example: 2.76b f337fea)
On restart of the game engine, the python controller runs an old version of the script.
**Exact steps for others to reproduce the error**
1: load the attached bug.blend It contains a cube with two sensor->controller->actuator groups. One has an Always sensor attached to a Python controller and a Movement actuator. The python controller runs a simple script that prints a message to the console. The second sensor is a keyboard sensor that detects 'p' being pressed and is attached to a Game actuator that restarts the game.
2: Go to Window->Toggle System Console to see console output.
3: run the game with the 'p' key.
4: press the 'p' key to restart the game.
5: look at the console output and confirm that the script printed "Initial Version" on both runs.
6: exit the game with escape
7: go to text editor mode.
8: change the string in the print command to "Updated version"
9: Go to 3d View mode
10: run the game with 'p'
11: restart the game with 'p'
12: look at the console output. Notice that it said "Updated version" when the game was first run, and "Initial Version" when it restarted.
13: Go "Huh. That's weird."