python: get key of index in dictionary,"d = {'i': 1, 'j': 1}"