added sympy port of mathematica code