def quote_aware_split(string, delim=',', quote='"'):
    """ Split outside of quotes (i.e. ignore delimiters within quotes."""
    out = []
    s = ''
    open_quote=False
    for c in string:
        if c == quote: 
            open_quote = not open_quote
        if c == delim and not open_quote:
            out += [s]
            s = ''
        else: 
            s += c
    return out + [s]