Workaround for a sympy change causing issues in symbolic 2-level potentials