master: fix no xrange in python 3.3