polys: Cleanup in sympy/polys/compatibility.py