fix: please the flake8 god and fix to errors on the way

2 jobs for branch/default in 1 minute and 7 seconds (queued for 21 seconds)
Status Job ID Name Coverage
  Test
passed #63716
flake8

00:00:20

passed #63717
py27

00:01:07