I thought of using the following to run a normally-run-as-shell inside python:
x = subprocess.call('source credentials.txt', shell=True)
print os.environ
However, it seems that the environment doesn't update in the rest of the script. Why not? And is there a way to get over this with using shell (and not python) to update my os vars?