def _append(params, context):
    """
    Append a value to a list.
    """
    value = params['value']
    thelist = context.variables.setdefault(params['key'], [])
    thelist.append(value)
    return thelist