Write To Text In Python