Python While Loop For User Input Array Matlab File