added write_words.py