several changes of formating to turn the code flake8 compliant