```
f = urlopen ('http://ichart.finance.yahoo.com/table.csv?s=AAPL&d=4&e=29&f=2014&g=d&a=8&b=22&c=1981&ignore=.csv')
sys.stdout = open('output.csv', 'w')
p = f.read()
print p
f.close

```

This successfully opens (or creates) a file called output.csv and outputs the lines from the downloaded file into this local csv. How would I reverse the order that the lines are printed in?