changed write.py
Merge pull request #1 from black-perl/working

changed write.py
mended the write.py