Simplifying local.py using path.py as part of the change of removing pathlib