examples/csv/read_csv.py
import sys, csv

if len(sys.argv) != 2:
    sys.stderr.write("Usage: {} FILENAME\n".format(sys.argv[0]))
    exit()

file = sys.argv[1]
count = 0
with open(file) as fh:   # Python 2 mighe need 'rb'
    rd = csv.reader(fh, delimiter=';') 

    for row in rd:
        print(row)
        count += int(row[2])

print("Total: {}".format(count))

python examples/csv/read_csv.py examples/csv/process_csv_file.csv

Dialects of CSV files. See also: csv