Fix some issues that PEP8 found

Not necessarily. I haven't looked into this code enough, but it could be the case that these variables could contain some other 'truthy' value (instead of just `True` and `False`).