def arraytize(v):
    """
    convenience function that "transforms" its arguments
    into a list. If the argument is already a list, returns
    it. If the argument is None, returns an empty list. 
    Otherwise returns [argument].
    """
    if v is None:
        return []
    try :
        return list(v)
    except :
        return [v]