Python Execute Shell Script And Condition Matlab