os.environ is a dictionary that accesses the environment variables.
os.environ
In [1]: import os In [2]: os.environ[ "SomeFlag"] = "True" In [3]: os.environ[ "SomeFlag"] Out[3]: 'True'
Notice that "True" is a string.
"True"