Python Output String To Text File