Add logfile to gitignore, fix minor PEP8 issues

Minor changes to comply with PEP8 and edit of gitignore