import csv


def smart_split(in_str):
    """
    input:   '"aaaa",32,"bbbb","ccc,ddd"'
    output:  ['aaaa', '32', 'bbbb', 'ccc,ddd']
    """
    splited_arr = ['{}'.format(x) for x in list(csv.reader([in_str], delimiter=',', quotechar='"'))[0]]
    return splited_arr