Revert sympy/core/expr.py modifications