fix python 2.7