   Python Persistence between Frames
  I'm beginning to brainstorm some ideas for a python scripting system in a game I plan to make.  After a while, I came to the realization that the execution of a single script would have to span multiple frames. For example:walk(10,3)#makes character walk to specified locationsay("Hello.")The problem is that, in order for the character to walk, the script needs to exit and the heartbeat of the engine must continue. If that happened, though, the script would lose its place and it would never reach the "say" command.Does anyone have advice on how to allow my data and variables to "persist" between frames? Any help is appreciated. Thank you.   
There you go.;  Thank you. This is perfect!   