Switch to 'pathlib'

Switching to pathlib allows paths to be handled platform-agnosticly. In addition, tempfile was used to generate the temporary directories. These changes should allow the script to be run on Windows.

Merge request reports

Loading