The question might have been worded confusingly so here I will try to make it more clear. Suppose I have a dict like x = {0: [(36, 44)], 1: [(38, 39), (38, 40), (39, 4
x = {0: [(36, 44)], 1: [(38, 39), (38, 40), (39, 4