title: Pause/Resume embedded python interpreter
body: <p>Is there any possibility to pause/resume the work of embedded python interpreter in place, where I need? For example:</p>
  
  <p>C++ pseudo-code part:</p>
  
  <pre><code>main()
  {
       script = "python_script.py";
       ...
  
       RunScript(script); //-- python script runs till the command 'stop'
       while(true)
       {
            //... read values from some variables in python-script
            //... do some work ...
            //... write new value to some other variables in python-script
            ResumeScript(script); //-- python script resumes it's work where
                                  // it was stopped. Not from begin!
       }
       ...
  }
  </code></pre>
  
  <p>Python script pseudo-code part:</p>
  
  <pre><code>#... do some init-work
  while true:
         #... do some work
         stop # - here script stops and C++-function RunScript() 
              # returns control to C++-part
         #... After calling C++-function ResumeScript 
         # the work continues from this line
  </code></pre>
  
  <p>Is this possible to do with Python/C API?</p>
  
  <p>Thanks</p>