Fix flake8 warnings

2 jobs for master in 13 seconds
Status Name Job ID Coverage
  Test
passed job-flake8-2 #994858

00:00:13

passed job-flake8-3 #994857

00:00:12