Thanks for the important spot.

It's interesting, pep8 seems to be wrong in this case, when it says,
_"E712 comparison to False should be 'if cond is False:' or 'if not cond:'"_

How can it possibly know what the equality operator will return...
...on second thoughts, it's numpy, which should really not be changing the meaning of the equality operator.