for language in languages:
with open ('user_edits.csv', 'a') as f:
f.write(str(user_count)+","+str(language[0])+","+str(language[1])+","+str(language[2])+"\n")
import csv
with open ('user_edits.csv', 'a') as f:
writer = csv.writer(f, delimiter=',')
for language in languages:
writer.writerow([user_count]+language[:3])