migrant to python3