Python Execute Shell Command And Get Exit Status