fix build error at Python2.6