Python 2.6/2.7/3 migration part 6