fix python 3 error at configure time