python 3 compatibility: recognize that strings now have __iter__