title: How to remove multiple lines in files?
body: <p>I have a file where I need to remove some lines in the middle of the file.</p>
  
  <p>The lines I need to remove have a keyword at the beginning and at the end.</p>
  
  <p>Example:</p>
  
  <pre class="lang-none prettyprint-override"><code>aaaaaaaaaaaaaaaaa
  bbbbbbbbbbbbbbbbb
  ccccccccccccccccc
  ddddddddddddddddd
  Begintoremove
  eeeeeeeeeeeeeeeee
  fffffffffffffffff
  ggggggggggggggggg
  hhhhhhhhhhhhhhhhh
  EndofRemove
  iiiiiiiiiiiiiiiii
  jjjjjjjjjjjjjjjjj
  kkkkkkkkkkkkkkkkk
  lllllllllllllllll
  </code></pre>
  
  <p>I need to have a script, certainly in python, to remove the text part between keyword "Begintoremove" and "EndofRemove".</p>
  
  <p>Do you think it's possible to do, and if so, with which Python function?</p>