xrange creates an iterator and range a list (in python 3 rang behaves like xrange in python 2). So would be ok here.