Python Pathlib Write Text Appendix Surgery