Python Run Command And Capture Output Gap