title: write and read Dictionary Python 3
body: <p>I want to write weather information to a file and read it with another script. Currently I'm stuck at writing to file. 
  Original Code:</p>
  
  <pre><code>#!/usr/bin/env python3
  from pprint import pprint
  import pywapi
  import pprint
  pp = pprint.PrettyPrinter(indent=4)
  
  steyregg = pywapi.get_weather_from_weather_com('AUXX0022')
  
  
  pp.pprint(steyregg)
  </code></pre>
  
  <p>this give me output like this:</p>
  
  <pre><code>&gt; {   'current_conditions': {   'barometer': {   'direction': u'falling
  &gt; rapidly',
  &gt;                                                'reading': u'1021.33'},
  &gt;                               'dewpoint': u'0',
  &gt;                               'feels_like': u'2',
  &gt;                               'humidity': u'67',
  &gt;                               'icon': u'32',
  &gt;                               'text': u'W'}},.......
  </code></pre>
  
  <p>So I tried </p>
  
  <pre><code>#!/usr/bin/env python3
  from pprint import pprint
  import pywapi
  import pprint
  pp = pprint.PrettyPrinter(indent=4)
  
  steyregg = pywapi.get_weather_from_weather_com('AUXX0022')
  
  with open('weather.txt', 'wt') as out:
      pp.pprint(steyregg, stream=out)
  </code></pre>
  
  <p>But this leads to Error: </p>
  
  <pre><code>pprint() got an unexpected keyword argument 'stream'
  </code></pre>
  
  <p>What am I doing wrong? How can i read wheater.txt once it works in another python script? Or is there a more elegant way to capture Data like this and use it somewhere else?</p>
  
  <p>Thanks in Advance</p>