Python Example Code Store Text Data In File