scheduler: pyflakes fix