Does sympy offer a way to work with expressions involving arrays? I'm trying to do something like expr = sympy_parser('x[0]+x[1]') or sympy_parser('sum(x)') and evaluate that via expr.subs({'x': [1,2,3]}).
In the former case, the parser gives an error TypeError: 'Symbol' object is not subscriptable. In the latter case it parses, but subs doesn't evaluate and just returns the expression sum(x) again.