There are several other Python versions affected, even a few versions of Python 3 (since they were developed concurrently with Python 2). A better test would be something like:

    if sys.version[:3] in ('2.4', '2.5', '2.6', '3.0', '3.1'):

I don't think we really want to support anything older than 2.4, but you get the idea.