Python 3 porting.