mended the write.py
Merge pull request #2 from black-perl/master

mended the write.py