While Loop Within While Loop Python Break Command In Matlab