Merge pull request #16 from lowks/master

Last of the changes for pathlib
fix error in format

fix error in format
Merge branch 'fix_format'
fix problem with pathlib call
fix more problems found with pathlib
replacing stupid pathlib with path.py which is much more friendlier. Sorry about earlier misjudgement