Python2.6 backward compatability