Python 2.4 incompatibility, fixes issue #693