Python Execute Shell Command Capture Output Vs Outcome