title: How to interact with Running Python Script
body: <p>While my main script is running</p>
  
  <pre><code>class Blah():
      update=0
  
      def testthings(function):
          return function(9)
  
  main = Blah()
  while True:
      main.update+=1
  </code></pre>
  
  <p>How can I run an independent script to have access to the 'main variable' (defined in my main script) while the main script is running?</p>
  
  <p>Something like this would be useful</p>
  
  <pre><code>main = GetMain()
  while True:
      main.testthings(lambda x: x)
  </code></pre>