Fix some issues that PEP8 found

Shouldn’t all of these `foo is True`s and `foo is False`s simply be `foo` and `not foo` respectively?