James Stroud wrote: > indices = [t for t in zip(indices[::2],indices[1::2])] (Artefact of cut-and-paste.) Make that: indices = zip(indices[::2],indices[1::2]) James