Python, reverse some lines down to up
<p>I don't know how to do this:</p>

<pre><code>a b c d e 1
a b c d e 2
a b c d e 3
...
a b c d e n
</code></pre>

<p>and need:</p>

<pre><code>a b c d e n
....
a b c d e 3
a b c d e 2
a b c d e 1
</code></pre>

<p>I tried something like:</p>

<pre><code>newcontent=codecs.encode(content,'utf_8','replace')
for i in reversed(newcontent):
    newcontent.append(i)
    print newcontent
</code></pre>