def ensure_list_from_str(s, sep='\n'):
    'Given a multiline string convert it to a list of return None if empty\n\n    Parameters\n    ----------\n    s: str or list\n    '
    if (not s):
        return None
    if isinstance(s, list):
        return s
    return s.split(sep)
Given a multiline string convert it to a list of return None if empty

Parameters
----------
s: str or list
def ensure_list_from_str(s, sep='\n'):
    'Given a multiline string convert it to a list of return None if empty\n\n    Parameters\n    ----------\n    s: str or list\n    '
    if (not s):
        return None
    if isinstance(s, list):
        return s
    return s.split(sep)