head2head: replace xrange by range to make Python 3 happy
head2head: try to fix Travis tests by not hardcoding ids