Python Open Text File To Write