I think that the mixture of boolean and integer values in this expression is confusing.  The fact that `False == 0` and `True == 1` in Python is more a historical accident and shouldn't be treated as such in expressions.  I'd rather see this broken up into some easier to parse boolean expressions and conditional operators.