performance loss in py 2 will be small enough to use range (or six.range ?)