Python Waiting For User Input In Matlab