python/samba/tests: py2/py3 compatability replace xrange with range