title: Python: How to add a prefix to tags in an xml.etree.ElementTree
body: <p>I use the python asciimathml library to parse some asciimathml and convert it to MathML</p>
  
  <pre><code>&gt;&gt;&gt; from xml.etree.ElementTree import tostring
  &gt;&gt;&gt; tostring(asciimathml.parse('sqrt 2'))
  '&lt;math&gt;&lt;mstyle&gt;&lt;msqrt&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msqrt&gt;&lt;/mstyle&gt;&lt;/math&gt;'
  </code></pre>
  
  <p>The only trouble is I need my tags with a <code>m:</code> prefix. How do I change above code so I get:</p>
  
  <pre><code>'&lt;m:math&gt;&lt;m:mstyle&gt;&lt;m:msqrt&gt;&lt;m:mn&gt;2&lt;/m:mn&gt;&lt;/m:msqrt&gt;&lt;/m:mstyle&gt;&lt;/m:math&gt;'
  </code></pre>