title: Writing to csv has empty rows
body: <p>I have this script:</p>
  <pre><code>import csv
  import unicodedata
  
  with open('output.csv', 'a', encoding='cp1252') as csvfile:
      writer = csv.writer(csvfile)
  
      with open('input.csv', 'r', encoding='cp1252') as csvfile:
          for row in csv.reader(csvfile):
              name_array = u''.join([c for c in unicodedata.normalize('NFKD', row[0].lower()) if (c.isalnum() or c.isspace()) if not unicodedata.combining(c)]).split()
              writer.writerow(name_array)
  </code></pre>
  <p>which would create a name breakdown from a csv list of names. It works fine but the output has empty rows between successful name breakdowns.</p>
  <p>Sample <code>input.csv</code>:</p>
  <pre><code>&quot;Lastname, Firstname Secondname&quot;
  &quot;Lastname1 Lastname2, Firstname1&quot;
  </code></pre>
  <p>Sample <code>output.csv</code>:</p>
  <pre><code>lastname,firstname,secondname
     ##### empty row ####
  lastname1,lastname2,firstname1
  </code></pre>
  <p>How do I remove the empty row?</p>