support python 2.6, 3.3, 3.4