def METHOD_NAME(self, name, methods=('env', 'config'),
                        default=None):
    value = None
    config_name, envvar_name = self.session_var_map[name]
    if methods is not None:
        if 'env' in methods and value is None:
            value = os.environ.get(envvar_name)
        if 'config' in methods and value is None:
            value = self.config_file_vars.get(config_name)
    else:
        value = default
    return value