update module to review hints + flake8 correction