title: How to access a nested Python dictionary key-value pair when the key location in the hierarchy is not known in advance?
body: <p>I have a nested Python dictionary and need to set a certain key to a certain value. For example, </p>
  
  <pre><code>x['key1']['key2']['key3'] = value
  </code></pre>
  
  <p>This works if I know the hierarchy in advance. This is not the case. I am looking for an addressing scheme like 'key1/key2/key3' that could be specified at run time to access the desired key-value pair. Any suggestions?</p>