Enable flake8 for some Simulation packages and apply (mostly trivial) fixes to the code.
flake8
Simulation