Python While Loop For User Input Matlab