Use range instead of xrange for Python 3 compatibility.

xrange was removed from Python 3 and causes the UltiSnips plugin to
break for Vim compiled to use the Python 3 interpreter.