Python Execute Shell Script And Condition