title: Compare multiple dictionaries for entry based on two values within dictionary
body: <p>I have two python dictionaries, and I need an efficient way to iterate over one dictionary checking multiple values per-entry against another dictionary. If the entry does not exist I need to add that entry from one dictionary to the source dictionary. </p>
  
  <p>I have tried different methods such as itter() over the two dictionary values and using "in" to see if the value exists but the logic is broken somewhere.  </p>
  
  <pre class="lang-py prettyprint-override"><code>for key, value in export_data.iteritems():
    if  value['computer_id'] and value['computer_name'] in import_data.iteritems():
  </code></pre>
  
  <p>If <code>computer_id</code> and <code>computer_name</code> are in <code>import_data</code> then continue and if not then add the missing dictionary item from import_data to the export_data dictionary.</p>
  
  <p>In the example data below '<code>import_data</code>' has a extra item "<code>host-c</code>" and I would like that added to the export_data dictionary. </p>
  
  <p>The part I am having a hard time with is there is also a record for "host-g" but the computer_id is the same as host-a in export_data so I don't want to add that entry.</p>
  
  <p>Only unique items where both computer_name and computer_id are different. </p>
  
  <p>Example Data:</p>
  
  <pre><code>export_data = 
  {u'host-a': {'computer_id': [u'6353a65387'], 'computer_name': ['host-a'], 'first_observed': ['Wed Jul 24 13:57:56  2019']}, {u'host-b': {'computer_id': [u'635365d387'], 'computer_name': ['host-b'], 'first_observed': ['Wed Jul 24 13:57:56  2019']}
  
  import_data = 
  {u'host-a': {'computer_id': [u'6353a65387'], 'computer_name': ['host-a'], 'first_observed': ['Wed Jul 24 13:57:56  2019']}, {u'host-b': {'computer_id': [u'635365d387'], 'computer_name': ['host-b'], 'first_observed': ['Wed Jul 24 13:57:56  2019']},{u'host-c': {'computer_id': [u'6353654d387'], 'computer_name': ['host-c'], 'first_observed': ['Wed Jul 24 13:57:56  2019']},{u'host-g': {'computer_id': [u'6353a65387'], 'computer_name': ['host-g'], 'first_observed': ['Wed Jul 24 13:57:56  2019']}
  </code></pre>