def prepare_row(row):
    """Formats CSV so commas within quotes are not split upon."""
    row = row.split(",")
    st = None
    
    proc_row = []
    for i in range(len(row)):
        if st is None:
            if row[i][0] == "\"" and row[i][-1] != "\"":
                st = i
            else:
                proc_row += [row[i]]
        elif row[i][-1] == "\"":
            proc_row += [",".join(row[st:i+1])]
            st = None
            
    return proc_row