Add logfile to gitignore, fix minor PEP8 issues

Minor changes to comply with PEP8 and edit of gitignore
We typically allow for 100 columns per line, rather than PEP8's 80 (which arguably feels a little tight). Another preference is for using parentheses rather than backslashes for multi-line statements. Both of these are discussed in the Python Style Guidelines doc.