title: python- how to display size of all variables
body: <p>I want to print the memory size of all variables in my scope simultaneously.</p>
  
  <p>Something similar to:</p>
  
  <pre><code>for obj in locals().values():
      print sys.getsizeof(obj)
  </code></pre>
  
  <p>But with variable names before each value so I can see which variables I need to delete or split into batches.</p>
  
  <p>Ideas?</p>