title: Compare and extract strings from list in python
body: <pre><code>LIST=['insert_job: aaa', 'box_name: bbb', 'insert_job: ccc', 
        'box_name: ddd', 'insert_job: eee', 'insert_job: fff', 
        'box_name: ggg'] 
  </code></pre>
  
  <p>In above list if there are 2 continous <code>insert_job: ('insert_job: eee', 'insert_job: fff')</code> then I want to print first <code>insert_job:</code> which in this case will be <code>insert_job: eee</code>.</p>