Fix xrange for Python 3

scalarmult_B is hot enough that it's probably best to stick with
xrange when in Python 2, so let's make 'xrange' work in Python 3.