title: Merge lists of tuples based on its values
body: <p>I'm trying to figure out a method to merge two lists in python in order to accomplish something like this:</p>
  
  <pre><code>list_a = [(item_1, attribute_x), (item_2, attribute_y), (item_3, attribute_z)]
  list_b = [(item_1, attribute_n), (item_3, attribute_p) ]
  </code></pre>
  
  <p>As result:</p>
  
  <pre><code>list_result = [(item_1, attribute_x, attribute_n), (item_2, attribute_y, False), (item_3, attribute_z, attribute_p)]
  </code></pre>
  
  <p>Any ideas?</p>