some fix python3 compatibility