Make it compatible with Python2.6