further flake8 refinements

Signed-off-by: Kwpolska <kwpolska@gmail.com>
Merge pull request #275 from Kwpolska/master

flake8