Python Execute Command And Store Output Gap