Remove some obsolete code

Python 2.5 is no longer supported.