Fixed compliance to latest flake8.
Revert "Tests fail if building Sphinx documentation reports warnings."

This reverts commit a8f0a0b1623382618df5132d6532224519f97e2c.
Psycho-rebased branch 6-contributing on top of master
Reverted changes in Makefile, because they are not in the scope of 6-contributing topic branch.