fix broken compatibility python 2.6