Python Execute Command And Capture Output Gap