Update muon configuration and fix unit tests
This updates the MuonConfig to return CA only and not tuples (as per new configuration strategy). It should also fix the failing MuonConfig unit tests.
Also there are many minor fixes.
Added a flake8 test to try to keep this clean in the future.
Edited by Edward Moyse