Improve compatibility to python 2.6 to python 3.4