Python Capture Output Of Shell Command Startup