instead of doing
display = int(str(content).count(",")) #Number of commas in data.
print element+': '+str(content[-1])
print 'previous days',
if display > 0:
for x in range(2,2+display):
print str(content[-x]),
print '\n'
maybe a better way would be
print element+': '+str(content[-1])
print 'previous days',
for int in content:
print str(int),
print '\n'
because you're going to iterate over all the stuff in content anyways