Making the project Flake8 compliant

* The code style now respects the coding guidelines
* The documentation now respects the guidelines