def parse_list(s, l, tokens):
    """Interprets a list. A list containing a single item is converted to a
    scalar; anything else is converted to a Python list."""

    tokens = tokens.asList()

    # A single item in parentheses need not be a list
    if len(tokens) == 1: return tokens

    # Convert anything longer to a Python list
    return [tokens]