python ordereddict get index of key