def strip_null(arg, null=None):
 if (null is None):
  null = NULL
 if (type(arg) is types.ListType):
  return [i for i in arg if (i not in null)]
 elif (type(arg) is types.TupleType):
  return tuple([i for i in arg if (i not in null)])
 elif (type(arg) is type(set())):
  return arg.difference(set(null))
 elif (type(arg) is types.DictType):
  return {key: value for (key, value) in arg.items() if (value not in null)}
 return arg

def strip_null ( arg , null = None ) : if ( null is None ) : null = NULL if ( type ( arg ) is types . ListType ) : return [ i for i in arg if ( i not in null ) ] elif ( type ( arg ) is types . TupleType ) : return tuple ( [ i for i in arg if ( i not in null ) ] ) elif ( type ( arg ) is type ( set ( ) ) ) : return arg . difference ( set ( null ) ) elif ( type ( arg ) is types . DictType ) : return { key : value for ( key , value ) in arg . items ( ) if ( value not in null ) } return arg
strip list .