title: Values from nested dictionary
body: <p><strong>UPDATE</strong>:  How to access values in a nested dictionary, where one need two keys, the first to find the inner dict, the second to find the value at that key2.</p>
  
  <p>How does python access values from a nested dictionary, with two keys?  Or must I restructure the dictionary / create separate dictionaries?</p>
  
  <p>For example, I want to access</p>
  
  <ul>
  <li>values for <code>['d5']['raw_file']</code></li>
  <li>values for  <code>['append_dir_to_filename']</code> for all "fist keys" such as <code>g7, d5, a9</code></li>
  </ul>
  
  <p>List item</p>
  
  <pre><code>config = {
      'g7': {},
      'd5': {},
      'a9': {},
  }    
  config['g7']['append_dir_to_filename'] = 1,
  config['g7']['raw_file'] = ('cr2', 'jpg', 'mp4'),
  
  config['d5']['append_dir_to_filename'] = 1,
  config['d5']['raw_file'] = ('nef', 'jpg', 'avi'),
  
  config['a9']['append_dir_to_filename'] = 1,
  config['a9']['raw_file'] = ('mp4', 'jpg', 'avi')
  </code></pre>
  
  <p>In respect of structuring nested dictionaries, this would be the complexity per one (1) camera. There are 10 camera types in total and the goal is to rename, sort, extract info, etc. from mediafiles from these cameras in one bulk swipe:</p>
  
  <pre><code>config['d5']['append_dir_to_filename'] = 1
  config['d5']['device_name'] = 'Nikon-D5'
  config['d5']['raw_file'] = ('nef', 'jpg', 'avi')
  config['d5']['sup_file'] = ('jpg', 'wav')
  config['d5']['to_else_file'] = ('avi')
  config['d5']['timestamp'] = ('lwt')
  config['d5']['md5'] = 1
  config['d5']['code1'] = 'FAR'
  config['d5']['gps'] = 1
  </code></pre>