#506: re-establish python 2.4 compatibility