title: Python Global Variables in multiple files
body: <p>I have 2 daemons, which should access the same Variable. 
  I've created a 3rd file for global variables and each daemon can access the variable. But when one changes the variable the other one still sees the default value. </p>
  
  <p>example:</p>
  
  <p>glob.py</p>
  
  <pre><code>time = 0
  </code></pre>
  
  <p>daemon a:</p>
  
  <pre><code>import datetime
  import time
  import glob
  
  while(True):
      glob.time = datetime.datetime.now()
      time.sleep(30)
  </code></pre>
  
  <p>daemon b:</p>
  
  <pre><code>import glob
  
  while(True):
      print(glob.time)
  </code></pre>
  
  <p>it would print 0 everytime
  I hope I've made my problem clear, and someone can help me.
  If you need some more information please feel free to ask.</p>