Start porting to Python3