Pathlib Python Get Function Code