class MyDialect(csv.Dialect):
    strict = True
skipinitialspace = True
quoting = csv.QUOTE_ALL
delimiter = ','
quotechar = '"'
lineterminator = '\n'
b = StringIO.StringIO(yourstring)
Python - how to read/parse csv like line?