Add python3.2 test and fix portal bug under py3.2