Fix python3.2 compatibility