title: Writing to a CSV file
body: <p>When this writes to a CSV file, its writing each letter into its own cell. Any thoughts on how to fix this?</p>
  
  <p>I'm trying to write 'name' to its own cells.</p>
  
  <p>Thanks!</p>
  
  <pre><code>import json
  import csv
  from unidecode import unidecode
  
  def main():
    csv_writer = open_csv() #returns the functionality to write to a csv
    str_data = []
    with open('location') as f:
      for line in f:
        str_data.append(json.loads(line))
    data = str_data[0]
    for item in data['contacts']:
      linkedin_name = unidecode(name(item))
      write_to_csv(csv_writer, linkedin_name)
  
  
  def name(item):
   name = item['name']
   return name
  
  
  def open_csv():
    final_csv = open('test.csv', 'wb')
    csv.writer = csv.writer(final_csv)
    return csv.writer
  
  def write_to_csv(csv_writer, linkedin_name):
    csv_writer.writerow(linkedin_name)
  
  
  if __name__ == '__main__':
    main()
  </code></pre>