Porting to Python 3.3 (in progress)