fix python3.2 support