Updated .gitignore
Formatted source code according to PEP8
Check/fix shebang and encoding as a part of formatting check/fix