os.environ[...] = ... sets the environment variable only for the duration of the python process (or its child processes).
It is not easily (i.e. without employing OS-specific tools) possible and surely not advisable to set the variable for the shell from which you run Python. See aumo's comment for alternative and somewhat obscure approaches to the problem.