What Is The Correct Way To Write Multiple Lines To A Text File In Python