Move flake8 checking to build stage
Another MR to move the flake8 checking from the unit test to the build stage. For the few remaining unit tests, use the predefined ${ATLAS_FLAKE8}
variable instead of hard-coding the flake8
command line and default options.