use itertools following jgraham's suggestion
Merge pull request #4 from w3c/deniak/itertools-pagination

use itertools following jgraham's suggestion