Sympy

SymPy is a symbolic mathematics library for Python.