title: Getting object's parent namespace in python?
body: <p>In python it's possible to use '.' in order to access object's dictionary items. For example:</p>
  
  <pre><code>class test( object ) :
    def __init__( self ) :
      self.b = 1
    def foo( self ) :
      pass
  obj = test()
  a = obj.foo
  </code></pre>
  
  <p>From above example, having 'a' object, is it possible to get from it reference to 'obj' that is a parent namespace for 'foo' method assigned? For example, to change obj.b into 2?</p>