Fixing KeyError when there is no config file
Fixing style error