title: creating a python dictionary from a list and comma separated line
body: <p>Is there a more <em>elegant</em> way in <code>python</code> to create a <code>dictionary</code> from a <code>list</code> and a <code>cs line</code> besides a loop?</p>
  
  <pre><code>my_master_list = ["ABC", "DEF", "GHI"]
  my_list = ["field1", "field2", "field3"]
  my_line = "test1,test2,test3"
  my_dict = {}
  
  for x in my_master_list:
      my_dict[x] = {}
      line_parts = my_line.split(",")
      n = 0
      for y in my_list:
          my_dict[x][y] = line_parts[n]
          n +=1
  
  print my_dict
  # {'ABC': {'field2': 'test2', 'field3': 'test3', 'field1': 'test1'}, 'GHI': {'field2': 'test2', 'field3': 'test3', 'field1': 'test1'}, 'DEF': {'field2': 'test2', 'field3': 'test3', 'field1': 'test1'}}
  </code></pre>