def setStackEnvs(**kwargs):
    "set a bunch of stackEnv variables in one step via kwargs"
    backFrame = sys._getframe().f_back
    for name, value in kwargs.iteritems():
        setStackEnv(backFrame, name, value)
set a bunch of stackEnv variables in one step via kwargs
recipes/Python/578147_Stack_Environment/recipe-578147.py