Logical Operators in python