title: How to insert one line code in the middle of the html file by using python?
body: <p>I have one html file named Hello.html, </p>
  
  <p><strong>Hello.html</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Window Title or Email Subject&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;!--@SPF-JS-HEADER@--&gt;
  &lt;body&gt;
  &lt;p&gt;Hello&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I wish to add few line which is </p>
  
  <pre><code>&lt;style type="text/css"&gt;
  table.tblin, td.tblin, th, td.alt 
  {
       border-color:#cc9;
       border-collapse:collapse;
       border-style:solid;
       border-width:1px;
       border-spacing:4px;
  }
  </code></pre>
  
  <p>So i wish to used the python code just insert the style script and the output like below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Window Title or Email Subject&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;!--@SPF-JS-HEADER@--&gt;
  &lt;style type="text/css"&gt;
  table.tblin, td.tblin, th, td.alt 
  {
       border-color:#cc9;
       border-collapse:collapse;
       border-style:solid;
       border-width:1px;
       border-spacing:4px;
  } 
  &lt;body&gt;
  &lt;p&gt;Hello&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>anyone have ideas?</p>