Updates to the parse_Mathematica function