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.
Merge pull request #83 from gbaty/clean_code

Clean code