def _make_env(opts, os_opts):
 env = {}
 for (k, v) in opts.items():
  key = (u'ST_' + k.upper().replace(u'-', u'_'))
  env[key] = v
 for (k, v) in os_opts.items():
  key = (u'OS_' + k.upper().replace(u'-', u'_'))
  env[key] = v
 return env

def _make_env ( opts , os_opts ) : env = { } for ( k , v ) in opts . items ( ) : key = ( u'ST_' + k . upper ( ) . replace ( u'-' , u'_' ) ) env [ key ] = v for ( k , v ) in os_opts . items ( ) : key = ( u'OS_' + k . upper ( ) . replace ( u'-' , u'_' ) ) env [ key ] = v return env
construct a dict of environment variables for given options .