Setting environment variable around subprocess

I really appreciate the help. But it seems to me just reading the docs doesn’t convey the intent and the philosophy of these classes and the APIs thereof. This probably comes with experience using the particular library.