title: python: how to merge dict in list of dicts based on value
body: <p>I have a list of dicts, where each dict consists of 3 keys: name, url, and location.<br>
  Only value of 'name' can be the same throughout the dicts, and both 'url' and 'location' are always different value throughout the list.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>[
  {"name":"A1", "url":"B1", "location":"C1"}, 
  {"name":"A1", "url":"B2", "location":"C2"}, 
  {"name":"A2", "url":"B3", "location":"C3"},
  {"name":"A2", "url":"B4", "location":"C4"}, ...
  ]  
  </code></pre>
  
  <p>Then I want to make them grouping based on the value in 'name' as follows.</p>
  
  <p><strong>Expected:</strong></p>
  
  <pre><code>[
  {"name":"A1", "url":"B1, B2", "location":"C1, C2"},
  {"name":"A2", "url":"B3, B4", "location":"C3, C4"},
  ]
  </code></pre>
  
  <p>(actual list consists of >2,000 dicts)</p>
  
  <p>I'd be very glad to get solved this situation.<br>
  Any advice / answers will be greatly appreciated.</p>
  
  <p>Thanks in advance.</p>