Rewrite Javascript to Python : <p>I struggling to understand this javascript code and would like to rewrite it to python.</p>

<pre><code>function rotateRight(e, t) {
    for (var n, i = 0; (t &gt; i); i++) 
        n = (1 &amp; e), e &gt;&gt;= 1, n &lt;&lt;= 31, e += n;
    return e
}
</code></pre>

<p>My biggest struggle is to understand how is the <code>e</code> being influenced by <code>n</code>.</p>

<p>Thank you for help</p>
