def list_strings(arg):

    if isinstance(arg,str): return [arg]
    else: return arg
Always return a list of strings, given a string or list of strings
dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/text.py/list_strings