title: How to keep variable and dictionary that contains it consistent?
body: <p>I have a variable </p>
  
  <pre><code>self.foo = 1
  </code></pre>
  
  <p>And a dictionary</p>
  
  <pre><code>self.foo_dict = {
      'foo_key' = self.foo
  }
  </code></pre>
  
  <p>I would like to be able to change the value of <code>self.foo</code> and have it also change in <code>self.foo_dict</code>. If this was in C (and the dict was a struct), I'd just use a pointer.</p>
  
  <p>Any suggestions? Is this even possible in Python?</p>