fix python3 problems