title: How can I "save" an instance and not its reference? (Pickle)
body: <p>I'm working with a "bunch-class" just to save attributes.</p>
  
  <pre><code>class Args:pass
  args = Args()
  args.test = "test"
  args.bla = [...]
  </code></pre>
  
  <p>Then I pass <code>args</code> as <code>data</code> to other functions (<code>data=args</code>). I think my problem is that only a reference is given to <code>data</code>: <code>data = &lt;__main__.Args object at 0x09E41050&gt;</code></p>
  
  <p>Im trying to use Pickle, but this error apears: <code>pickle.PicklingError: Can't pickle &lt;class '__main__.Args'&gt;: it's not found as __main__.Args</code>.</p>
  
  <p>I dont know exactly if the problem is caused by the reference, but I think its probably.</p>