title: having problems with python csv
body: <p>I'am having trouble with python csv module I'am trying to write a newline in a csv file is there any reson why it would not work?</p>
  <p>Code:</p>
  <pre><code>csv writing function
      def write_response_csv(name,games,mins):
      with open(&quot;sport_team.csv&quot;,'w',newline='',encoding='utf-8') as csv_file:
          fieldnames=['Vardas','Žaidimai','Minutės']
          writer = csv.DictWriter(csv_file,fieldnames=fieldnames)
          writer.writeheader()
          writer.writerow({'Vardas':name,'Žaidimai':games,&quot;Minutės&quot;:mins})
  
  
      with requests.get(url,headers=headers) as page:
      content = soup(page.content,'html.parser')
      content = content.findAll('table',class_='table01 tablesorter')
      names = find_name(content)
      times = 0
      for name in names:
          matches = find_matches(content,times)
          min_in_matches = find_min(content,times)
          times +=1
          csv_file = write_response_csv(name,matches,min_in_matches)
          try:
              print(name,matches,min_in_matches)
          except:
              pass
  </code></pre>