`process.stdout` will never be `None` because we specify that stdout should be captured in the `subprocess.Popen` call. See the Python docs: https://docs.python.org/3.8/library/subprocess.html#subprocess.CompletedProcess