make code compliant with flake8 rules

2 jobs for new-reporting in 1 minute and 59 seconds (queued for 1 second)