pts = **set(**[coord.points[i] for i in key_slice]**)** should do the trick?