Modify values in a key values pers using Python : <p>I have a text file with key value pairs, for example:  </p>

<pre><code>#Version number
Version=20

#Mode name
Mode=Slow
list=false
type=8475
</code></pre>

<p>Using python, Is there an easy way to update several values in this text file or I should do a search &amp; replace using regular expression for that ?</p>
