title: Python - hash of hash of hash perl equivalent
body: <p>Experts,</p>
  
  <p>I am coming from Perl background and very much used to using nested hash structures like <code>$row{dept}{owner}{name}{access} = "\\server\path";</code></p>
  
  <p>Tried doing similar in Python using,</p>
  
  <pre><code>row = collections.defaultdict(dict)
  </code></pre>
  
  <p><code>row[dept][owner]</code> works but cannot do <code>row[dept][owner][name][access]</code></p>
  
  <p>Tried string concat to merge 4 values into 2 like, <code>row[dept_owner][name_access]</code> but that does not solve the purpose. Say, if I directly want to find keys/values for <code>row["IT"]["John Smith"]["Reporting"]</code></p>
  
  <p>Should I improve on <code>defaultdict</code> or there is another/better way to do this, really appreciate it.</p>