title: Python extracting sentence containing 2 words with conditions of window size
body: <p>I have the same problem that was discussed in this link
  <a href="https://stackoverflow.com/questions/18529140/python-extracting-sentence-containing-2-words">Python extracting sentence containing 2 words
  </a></p>
  <p>but the difference is that i need to extract only sentences that containe the two words in a defined size windows search . for exemple:</p>
  <pre><code>sentences = [ 'There was peace and happiness','hello every one',' How to Find Inner Peace ,love and Happiness ','Inner peace is closely related to happiness']
  
  search_words= ['peace','happiness']
  windows_size = 3  #search only the three words after the 1est word 'peace'
  #output must be :
  output= ['There was peace and happiness',' How to Find Inner Peace love and Happiness ']
  </code></pre>