fix python3 warning