title: Python 2.7 W7 - how to write result of a map reduce funcion to a file
body: <p>I have a "print result" (that is fine) exactly like this:</p>
  
  <blockquote>
    <p>'Mixer Audio|Mixer Video' : 2, 'Tecnico Audio|Operatore Televideo' : 4, ' |Tecnico Video' : 4, 'Tecnico Audio|Tecnico Audio' : 7, 'Mixer Audio|Mixer Audio' : 3</p>
  </blockquote>
  
  <p>I tried to export results to a txt file:</p>
  
  <pre><code> with open('s.txt', 'w') as line:
      for row in results:
          print row
          line.write("%s\n" % str(row))
  </code></pre>
  
  <p>This is what I found in s.txt:</p>
  
  <pre><code>Mixer Audio|Mixer Video
  Tecnico Audio|Operatore Televideo
  |Tecnico Video
  Tecnico Audio|Tecnico Audio
  Mixer Audio|Mixer Audio
  </code></pre>
  
  <p>I really need help from experts.</p>