Fix PEP-8 E302 error
Fix PEP-8 W293 error.

Moved the logging instantiation a bit down, it shouldn't be between the import lines.
Merge pull request #7559 from s0undt3ch/hotfix/lint

Some PEP8 Lint fixes