support Python 2.6