title: tweets are not storing in csv file.i tried so many methods .Actually i getting tweets but they are not storing in my workbook
body: <p>My code is:</p>
  
  <pre><code>import tweepy
  import csv
  import pandas as pd
  import sys
  #input your credentials here
  consumer_key = ''
  consumer_secret = ''
  access_token = ''
  access_token_secret = ''
  
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token, access_token_secret)
  api = tweepy.API(auth,wait_on_rate_limit=True)
  # Open/Create a file to append data
  csvFile = open('amaravathi.csv', 'a')
  #Use csv Writer
  csvWriter = csv.writer(csvFile)
  for tweet in tweepy.Cursor(api.search,q="#amaravathi",count=10,
                         lang="en").items():`
      csvWriter.writerow([tweet.created_at, tweet.text.encode('utf-8')])
      print(tweet.created_at,tweet.text)
  csvFile.close()
  </code></pre>