drop Python 2.5 and Python 3.1 support

Python 2.5 doesn't have abc module, and both Python 2.5 and Python 3.1 don't work with recent Cython.