agent: pyflakes fixes