Create states_writefile.py

Lesson 3 - write file