PEP8 Fixes

Changed the code structure to apply with PEP8 style guide.

There is also additional fixes for executable file and ignore list.