Fix CI and apply formatting
The formatting job in the CI was stumbling over python files not compatible with python 2. This is now fixed and the formatting re-applied.
The formatting job in the CI was stumbling over python files not compatible with python 2. This is now fixed and the formatting re-applied.