Python If Logical Operators In Matlab