def process_sympy(sympy, variable_values={}):
    global VARIABLE_VALUES
    if (len(variable_values) > 0):
        VARIABLE_VALUES = variable_values
    else:
        VARIABLE_VALUES = {}
    matherror = MathErrorListener(sympy)
    stream = antlr4.InputStream(sympy)
    lex = PSLexer(stream)
    lex.removeErrorListeners()
    lex.addErrorListener(matherror)
    tokens = antlr4.CommonTokenStream(lex)
    parser = PSParser(tokens)
    parser.removeErrorListeners()
    parser.addErrorListener(matherror)
    return_data = None
    math = parser.math()
    if math.relation_list():
        return_data = []
        relation_list = math.relation_list().relation_list_content()
        for list_item in relation_list.relation():
            expr = convert_relation(list_item)
            return_data.append(expr)
    else:
        relation = math.relation()
        return_data = convert_relation(relation)
    return return_data
def process_sympy(sympy, variable_values={}):
    global VARIABLE_VALUES
    if (len(variable_values) > 0):
        VARIABLE_VALUES = variable_values
    else:
        VARIABLE_VALUES = {}
    matherror = MathErrorListener(sympy)
    stream = antlr4.InputStream(sympy)
    lex = PSLexer(stream)
    lex.removeErrorListeners()
    lex.addErrorListener(matherror)
    tokens = antlr4.CommonTokenStream(lex)
    parser = PSParser(tokens)
    parser.removeErrorListeners()
    parser.addErrorListener(matherror)
    return_data = None
    math = parser.math()
    if math.relation_list():
        return_data = []
        relation_list = math.relation_list().relation_list_content()
        for list_item in relation_list.relation():
            expr = convert_relation(list_item)
            return_data.append(expr)
    else:
        relation = math.relation()
        return_data = convert_relation(relation)
    return return_data