how to iterate over a range of keys in a dictionary?,list(d.keys())