Fix config load

Same as #111, with PEP8 fixes.