Revert "fixed python 2.4 incompatibility"

This reverts commit 1f24259d40668a506937841905af77de09fb51b3.