title: How to print multiple txt files from a single output
body: <p>I want to write different text files from each group; how do I go about it? Currently it's writing everything into one txt file.</p>
  
  <pre><code>data = json.loads(output)
  print "===========================Example 1======================================="
  for issue in data["issues"]:
      print issue ['key'], issue['fields']['summary']
  
  data = json.loads(output1)
  print"======================Example 2===================================="
  for issue in data["issues"]:
     print issue ['key'], issue['fields']['summary']
  
  data = json.loads(output2)
  print"====================== Example 3===================================="
  for issue in data["issues"]:
      print issue ['key'], issue['fields']['summary']
  
  data = json.loads(output3)
  print"======================Example 4===================================="
  for issue in data["issues"]:
      print issue ['key'], issue['fields']['summary']    
  
  data = json.loads(output4)
  print"======================Example 5===================================="
  for issue in data["issues"]:
      print issue ['key'], issue['fields']['summary']    
  </code></pre>
  
  <p>Thia is how I have solved this issue :</p>
  
  <pre><code>for issue in data["issues"]:
     f.write(issue ['key'])
     f.write(issue['fields']['summary']) 
     f.write('\n')
  </code></pre>
  
  <p>It writes every thing in a list and in separate files under each line.</p>