def METHOD_NAME(env_var, value):
  """Sets the env variable to 'value'; unsets it when 'value' is None."""
  if value is not None:
    environ[env_var] = value
  elif env_var in environ:
    del environ[env_var]