scheduler: fix on start/stop dispatching
scheduler: pyflakes fix