#!/usr/bin/env python

# Readind a csv file and trim each field
with open('csv.csv') as f:
    for line in f:
        try:
            parts = [part.strip() for part in line.split(',')]
        except IndexError:
            continue
        #print parts

