Maximum likelihood estimation in Sympy.