title: Select element in list of values in dictionary
body: <p>I have a dictionary with the values being list with 2 or more elements. 
  I want to slice in those values with more than 2 elements based on the other values with only 2 elements in their list.</p>
  
  <p>I know i can append all the value elements to a list and then just count the most common, but i need to keep the information regarding the key and the dictionary format, so it doesnt really work. And i cant seem to figure out how to attack this problem.</p>
  
  <p>My dictionary is like this</p>
  
  <pre><code>start_dict = {
      'Key1': [243928620, 243938319],
      'Key2': [243928620, 243938319],
      'Key3': [243928620, 243931757, 243938319],
      'Key4': [243928620, 243938319, 243938323],
      'Key5': [243928634, 243938316],
      'Key6': [243928620, 243938319],
      'Key7': [243928634, 243938317],
      'Key8': [243928620, 243938329,243938387]
  }
  </code></pre>
  
  <p>I want to keep element 1 in all of the value list unaltered as it's a start coordinate, and the rest is potential end coordinates for a given interval.</p>
  
  <p>Then for those values with more than 2 elements in their list (key3, 4 and 8) i want to keep that element in their list of values which is most frequent in the other value lists for the other keys, which is the case for key3 and 4, as they both contain the most frequent end coordinate of 243938319.</p>
  
  <p>If they are not present in any of the other i'll just keep them, which is the case of key 8.</p>
  
  <p>The values most frequent of all the keys are for the start position 243928620 and for the end postion 243938319. So the ideal output would be</p>
  
  <pre><code>start_dict = {
      'Key1': [243928620, 243938319],
      'Key2': [243928620, 243938319],
      'Key3': [243928620, 243938319],
      'Key4': [243928620, 243938319],
      'Key5': [243928634, 243938316],
      'Key6': [243928620, 243938319],
      'Key7': [243928634, 243938317],
      'Key8': [243928620, 243938329,243938387]
  }
  </code></pre>
  
  <p>I cant seem to get my head around how this could be done, if it even can be done in a smart way. </p>
  
  <p>Would any of you be able to help? Thanks for your time.</p>