Do 'from six.moves import xrange' instead of 'from six.moves import range': the latter seems to have weird issues on some systems