title: Import a exported dict into python
body: <p>I'm writing something like a database, but rather simple and small. So I used a dict, which is then saved in a file. </p>
  
  <p>The code is roughly:</p>
  
  <pre><code>d = {'apple': 1, 'bear': 2}
  print(d, file=f)
  </code></pre>
  
  <p>I want it to be imported the next time I run it, i.e. import it as a dictionary from file, anyway to do it?</p>