title: Inserting into a html file using python
body: <p>I have a html file where I would like to insert a <code>&lt;meta&gt;</code> tag between the <code>&lt;head&gt;</code> &amp; <code>&lt;/head&gt;</code> tags using python. If I open the file in <code>append</code> mode how do I get to the relevant position where the <code>&lt;meta&gt;</code> tag is to be inserted?</p>