E712 comparison to False should be 'if cond is False:' or 'if not cond:'