def lines_intersect_index(lines):
    """ Returns the index of the first pair of lines that intersect."""
    for i in range(len(lines)):
        for j in range(len(lines)):
            if i != j:
                if lines[i].intersects(lines[j]) != None:
                    return i, j
    return None, None