title: getting a dictionary of class variables and values
body: <p>I am working on a method to return all the class variables as keys and values as values of a dictionary , for instance i have:</p>
  
  <p>first.py</p>
  
  <pre><code>class A:
      a = 3
      b = 5
      c = 6
  </code></pre>
  
  <p>Then in the second.py i should be able to call maybe a method or something that will return a dictionary like this</p>
  
  <pre><code>import first
  
  dict = first.return_class_variables()
  dict
  </code></pre>
  
  <p>then dict will be something like this:</p>
  
  <pre><code>{'a' : 3, 'b' : 5, 'c' : 6}
  </code></pre>
  
  <p>This is just a scenario to explain the idea, of course i don't expect it to be that easy, but i will love if there are ideas on how to handle this problem just like <strong>dict</strong> can be used to set a class variables values by passing to it a dictionary with the variable, value combination as key, value.</p>