word_features = get_word_features(get_words_in_tweets(tweets))
with open('wordFeatures.csv', 'w') as output:
    writer = csv.writer(output, delimiter=':')
writer.writerows(enumerate(word_features, 1))
Python export csv data into file