[#2095] python 2.4.x compatibility