use flake8 to perform more rigorous code checks