`os.environ` already returns a string, so you only need remove the `str()` call. It is harmless at the moment, just redundant:

`str(os.environ['http_proxy'])` --> `os.environ['http_proxy']`