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 flake8 #63716

00:00:20

passed py27 #63717

00:01:07