Python code style fixes for core new-style config modules
Fix python warnings generated by flake8
for all new-style "ComponentAccumulator" config modules in the core domain:
- unused variables/imports
- wrong use of logging calls
- use of deprecated Py2 features