Fix Python3.2 compatibility