python how to set os.environ code example
Example 1: python create environment variable
import os
os.environ['variable_name'] = 'variable_value'
Example 2: python check environment variable exists
from os import environ
if environ.get('Foo') is not None: