Python 2.4 compatibility

Not sure how my tests were passing without this...