Make client work with python34

xrange isn't python3 compatible.

Change-Id: I523b25f3891cb03333c0fdb7647853bbefca87d8