How can i write this bash script in python
<p>I have this</p>

<pre><code> curl -s http://mcupdate.tumblr.com/rss | egrep -o -e 'le&gt;Minecraft [0-9]\.[0-9]\.[0-9]|le&gt;Minecraft [0-9]\.[0-9]' | head -1 | egrep -o -e '[0-9]\.[0-9]\.[0-9]|[0-9]\.[0-9]'
</code></pre>

<p>And i need to have this written in python i have tried but i have no idea how to do it</p>

<p>Its for an opensource python minecraft launcher</p>
