Python Capture Output Of Shell Command For Control