So, I was messing around with Sympy, and here\'s my code:
>>> e=expand((x-2+2*y)+(y+2*z+x**2)) >>> e 2 x + x + 3⋅y + 2⋅z -