flake8 fixes + code cleanup
CORE_START/STOP_SPEED: tweeks to make it work with engine start/stop KTIs in real life use cases