title: How to copy contents of one file into a after a specific line in another file
body: <p>How to copy contents of one file into a after a specific line in another file? </p>
  
  <p>I would like to copy the contents of file1 after the following string:</p>
  
  <pre><code>&lt;!-- INSERT SMART FIELDS HERE --&gt; 
  </code></pre>
  
  <p>My code so far.</p>
  
  <pre><code>file1 = open('newfile.xml')
  file2 = open('../file.xml', "rb+")
  regex = re.compile(r"&lt;[^*]-- INSERT SMART FIELDS HERE --&gt;")
   for line in file1.readlines():
     for comment in file2.readlines():
         our_match = regex.findall(comment)
               if match in our_match:
  </code></pre>