Use six to make xrange work across python 2 and 3