Flake8 fixes for modules app