create dictionary with multiple keys and values
<p>I would like to create a dictionary with multiple keys and values. At this point I am not sure that I am putting my question correctly. But here is an example of what I want to create :</p>

<pre><code>patDct = {
           'mkey1':{'key1':'val_a1', 'key2':'val_a2', 'key3':'val_a3'},
           'mkey2':{'key1':'val_b1', 'key2':'val_b2', 'key3':'val_b3'},
           ....
          }        
</code></pre>

<p>I have two dictionaries and I am pulling information for 'mkey*', and 'val*' from them. 'key*' are strings.</p>

<p>I have a piece of code to create the dictionary without the 'mkey*', but that only prints out the last set of values. Following is what I have now.
"storedct" and "datadct" are two given dictionaries. 
Here I would like 'mkey*' to get the value of "item".</p>

<pre><code> patDct = dict()                                                                                                                                                             
 for item in storedct :                                                                                                                                                         
     for pattern in datadct :                                                                                                                                                    
         if pattern in item :                                                                                                                                                     
             patDct['key1'] = datadct[pattern]["dpath"]                                                                                                        
             patDct['key2'] = datadct[pattern]["mask"]                                                                                                                                                                                                                                                
             patDct['key3'] = storedct[item]   
</code></pre>

<p>Thanks for any suggestion.              </p>
