title: How to access class-scope variables without self?
body: <p>So I have a class, which I'm using as a local namespace. I have some static functions in the class, but they can't access the class scope variables. Why is this?</p>
  
  <pre><code>class Foo:
      foo_string = "I am a foo"
  
      @staticmethod
      def foo():
          print foo_string
  </code></pre>
  
  <hr>
  
  <pre><code>&gt;&gt;&gt; Foo.foo()
    [Stack Trace]
    NameError: global name 'foo_string' is not defined
  </code></pre>
  
  <p>Any thoughts?</p>