Make sintax more PEP8 friendly

Flake8 violations amount decreased from 6672 to 1992.

1992 is not 0, but a good start. :)