In the module, those should be available via os.environ:
https://docs.python.org/2/library/os.html#os.environ