title: Accessing module level variables, from within a function in the module
body: <p>I'd like to be able to do something like this:</p>
  
  <pre><code>#mymodule
  var = None
  
  def load():
      var = something()
  </code></pre>
  
  <p>Other module(s):</p>
  
  <pre><code>#secondmodule
  import mymodule
  mymodule.load()
  
  #thirdmodule
  from mymodule import var
  print var #Shouldn't be None
  </code></pre>
  
  <p>But I don't know how to reference a modules variable from a function defined in the module.</p>
  
  <p>Is this possible? Or am I going to need to put a global declaration in every place I wan't to use this.
  Or am I going at this completely wrong?</p>