def write_csv_file(path, app_messages, lang_dict):
	app_messages.sort(lambda x,y: cmp(x[1], y[1]))
	from csv import writer
	with open(path, 'wb') as msgfile:
		w = writer(msgfile, lineterminator='\n')
		for p, m in app_messages:
			t = lang_dict.get(m, '')
			# strip whitespaces
			t = re.sub('{\s?([0-9]+)\s?}', "{\g<1>}", t)
			w.writerow([p.encode('utf-8') if p else '', m.encode('utf-8'), t.encode('utf-8')])
Returns all stickers
dataset/ETHPy150Open frappe/frappe/frappe/translate.py/write_csv_file--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/trello/cards.py/Card.stickers