Fixed polynomial integration for newer SymPy versions.