wwwlog = open('access-log')
bytecolumn = (line.rsplit(None, 1)[1] for line in wwwlog)
bytes = (int(x) for x in bytecolumn if x != '-')
print('Total', sum(bytes))
Pythonic way to process multiple for loops with different filters against the same list?