fixed a python3.2 bug