Porting to Python3.2