See @tseaver comment about returning (and the current storage regression test hacky behavior).
This will likely require doing something like
class Environment(object):
....
DEFAULT_ENVIRON = Environment()
def set_default_foo():
# Do some stuff to DEFAULT_ENVIRON
return DEFAULT_ENVIRON