title: Add text info to each row in Python dictWriter
body: <p>I'm using DictWriter in Python 3 to output an Object's state into a text file, like so:</p>
  
  <pre><code>def to_csv(self):
      with open('filename', 'w') as myfile:
          fieldnames = ['a1', 'a2', 'a3', 'a4', 'a5']
          wr = csv.DictWriter(myfile, fieldnames=fieldnames)
          wr.writeheader()
          for idx, row in enumerate(self.tasks):
              wr.writerow(row)
  </code></pre>
  
  <p>I would however like to add an additional column into the output. Here's what I'm trying to get at:</p>
  
  <pre><code>wr.writerow(row + 'task number:'+idx)
  </code></pre>
  
  <p>Any pythonic way to do this? I guess I could prepare a string with each row, append the task number to that string &amp; then pass that to the writerow (using a regular writer instead of DictWriter), but I'd like to not mess around with string &amp; use the DictWriter directly if possible...</p>