title: Python globals var different inside class when imported
body: <p>This is clearly a scope or import issue of some kind, but I can't figure it out.  Something like:</p>
  
  <pre><code>classes.py
  
  class Thing(object):
  
      @property
      def global_test(self):
          return the_global
  </code></pre>
  
  <p>And then...</p>
  
  <pre><code>test.py
  
  from classes import Thing
  
  global the_global
  the_global = 'foobar'
  
  t = Thing()
  t.global_test
  </code></pre>
  
  <p>:(</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "classes.py", line 4, in global_test
      return the_global
  NameError: global name 'the_global' is not defined
  </code></pre>
  
  <p>Any help would be great!</p>