Probably it is better to change to xrange(2)