title: Importing another file while I do not know a name of variable to import
body: <p><em>Main.py</em></p>
  
  <pre><code>current_code = rQbbUM3GDMrHw31uZQPYfsDdt
  </code></pre>
  
  <p><em>current_code</em> has been generated in <em>Main.py</em>. In <em>database.py</em> variable <em>curent_code</em> has the same value as in <em>Main.py</em>. 
  <em>database.py</em></p>
  
  <pre><code>QbbUM3GDMrHw31uZQPYfsDdt = {'a':'Y', 'b':'U', 'c':'0',}
  </code></pre>
  
  <p>I need to get a list of keys and values from <em>database.py</em>. I tried with </p>
  
  <pre><code>import database as db
  key_list = list(db.current_code.keys())
  value_list = list(db.current_code.values())
  </code></pre>
  
  <p>But this does not work, because current_code is not a variable in <em>database.py</em>, but in <em>Main.py</em>. Code from above is passed in <em>Main.py</em>. I need to get this list in <em>Main.py</em>, because every time I run this program, a new current_code is generated.</p>