REFAC: replace os functions with pathlib
Replaced all occurrences of os functions with pathlib equivalents (os.path, os.remove, os.mkdir, os.listdir). See issue #459 (closed).
Replaced all occurrences of os functions with pathlib equivalents (os.path, os.remove, os.mkdir, os.listdir). See issue #459 (closed).