Use six.moves for references to xrange

Fixes #138