PEP 8 cleanup and fixes for conf-driven handlers