Compatibility python 2.6