python 3.x iterator #fix