title: Multiple <html><body> </html></body> in same file
body: <p>I have a multiple html files in one file.</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  
  &lt;html&gt;
    &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  
  &lt;html&gt;
    &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the result is that I get a messed up html file.</p>
  
  <p>How to correct this without removing <code>&lt;html&gt; &lt;body&gt;</code> tags from the rest?</p>
  
  <p>I am using python to generate the html file.</p>
  
  <ul>
  <li><p>If I use the <code>self.response.out.write(function(query))</code> I get a nice html page.</p></li>
  <li><p>If I use it a second time <code>self.response.out.write(function(query2))</code> Then the page gets distorted.</p></li>
  </ul>
  
  <p>Can we correct this using iframes? Can somebody give an example?</p>