Added patches for Python 2.4 and 2.5

Python 2.4 builds were failing due to a syntax error (see #21). This
patch hopefully solves the issue.