(item)
return item
if item is not None and Not a list returns [item] else returns item
if item is not None and Not a list returns [item] else returns item
if item is not None and Not a list returns [ item ] else returns item
def listify(item):
    """if item is not None and Not a list returns [item] else returns item"""
    if item is not None and not isinstance(item, (list, tuple)):
        item = [item]
    return item
def listify ( item ) : if item is not None and not isinstance ( item , ( list , tuple ) ) : item = [ item ] return item