Fixes main.py to comply with PEP8.
Changes pragmas to make pyLint happier.
Merge pull request #1 from rszalski/bug_1903

Bug 1903