title: Convert python objects to python AST-nodes
body: <p>I have a need to dump the modified python object back into source. So I try to find something to convert real python object to python ast.Node (to use later in <a href="https://github.com/berkerpeksag/astor" rel="nofollow noreferrer"><code>astor</code></a> lib to dump source)</p>
  
  <p>Example of usage I want, Python 2:</p>
  
  <pre><code>import ast
  import importlib
  
  import astor
  
  
  m = importlib.import_module('something')
  
  # modify an object
  m.VAR.append(123)
  
  ast_nodes = some_magic(m)
  
  source = astor.dump(ast_nodes)
  </code></pre>
  
  <p>Please help me to find that <code>some_magic</code></p>