def ListifyOption(option):
    if option:
        lex = shlex.shlex(option)
        lex.whitespace = WHITESPACE
        lex.wordchars += ":.-"
        return list(lex)
    else:
        return None
return any comma or space separated option as list
dataset/ETHPy150Open HenriWahl/dhcpy6d/dhcpy6/Helpers.py/ListifyOption