Applies sympy patch.