def force_list(value, min=None, max=None):
 if (not isinstance(value, (list, tuple))):
  value = [value]
 return is_list(value, min, max)

def force_list ( value , min = None , max = None ) : if ( not isinstance ( value , ( list , tuple ) ) ) : value = [ value ] return is_list ( value , min , max )
check that a value is a list .