Copy keys to a new dictionary (Python),set(d.keys())