Run python on specified task completion