Python Pathlib Write Text Append