I think reassigning os.environ will disconnect it from the underling environment variables, which we should probably avoid.