Merge pull request #79 from jucoste/generic_file_management

Generic file management
Follow flake8
Simplify code
Add path as locals for reading the configuration

Old config was setting the dir path using path.py module.
We need it to be backward compatible.