Remove all references to `os.path` in the code and replace with the equivalents using `Pathlib` for consistency and robustness. - [Source 1.1](https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/) - [Source 1.2](https://treyhunner.com/2019/01/no-really-pathlib-is-great/) This includes reducing all type hints from `(str, Path)` to `Path`.