Swapped os for subprocess to allow us to capture output.