Drop support for Python 2.5

There is still some code in the codebase that provides substitutes for code
present on newer Python versions, but those cleanups are left for the future.