Reverted import of sympy.core.compatibility.