bug #1561 - fixes for pep8, added gitignore

https://gist.github.com/novirael/ed619bf71247b78584f7