Update history.py to use pathlib...
Update history.py to use pathlib
Tests were returning exeption in atexit_operations
AttributeError: 'str' object has no attribute 'unlink'
This commit embraces usage of pathlib in history.py and related
tests, fixing aforementioned problem.