fix(controller): fix flake8 issues