How do I create a text file in Python