Web services and the csv module
Replace the for loop in stock.py with the following:
import csv for tick, price, chg, per in csv.reader(f): print tick.ljust(7), ('%.2f' % round(float(price), 2)).rjust(6), chg.rjust(6), per.rjust(6)