Formatting updates

I have no idea - any python gurus have an answer to this? @guillermo-carrasco @pekrau @Galithil @remiolsen @mariogiov?