Couldn't you use `for tower_tuple, cellmeasure_ids in new_cell_measures.items():` here and avoid the later `cellmeasure_ids = new_cell_measures[tower_tuple]` lookup?