Python Pathlib Write Text Backwards