Remove Python 2.5 stuff (#3930)

This removes all compatibility stuff with Python 2.5. Minimum Python version is now 2.6. Also, use `@public` as a class decorator in `sympy.polys` (previously was used only as function decorator).