Use older syntax which should work in RHEL5.
We no longer need to support Python 2.2 or older.
Drop workaround for Python < 2.5.