Changed os.environ key accesses to get calls.

Changed os.environ key accesses to get calls.