chore(controller): fix flake8 issues