Python While Or Statements In Matlab