title: Thread local storage in python across multiple classes
body: <p>I would like to use thread local storage across multiple classes.</p>
  
  <p>But <code>threading.local()</code> gets me a new instance of storage every time I call it. Is there a way to use  </p>
  
  <pre><code>threading.local().__setattr__('r_id', uuid.uuid4())
  </code></pre>
  
  <p>And there an equivalent of somehow to access in a completely different class ?</p>
  
  <pre><code>threading.local().__getattribute__('r_id')
  </code></pre>