[pathlib](https://docs.python.org/3/library/pathlib.html) offers a nifty object-oriented API and lots of convenience functionality for interacting with fs paths. See [the pep](https://www.python.org/dev/peps/pep-0428/) for more info. We can probably replace some or all of our path-munging code with pathlib. It is, however python 3 only.