For future reference, instead of `\`, enclose the logic in `(...)`, see http://www.python.org/dev/peps/pep-0008/#maximum-line-length. The lines in the continuation should be indented so they cannot be confused with the body of the `if` statement.