Rename write.dr to write.py