use straight flake8 and fix all flake8 errors

RM 10100
Merge pull request #351 from CrashenX/fix_flake_errors

use straight flake8 and fix all flake8 errors