Logical Expressions in Python