def _clean_salt_variables(params, variable_prefix='__'):
 list(list(map(params.pop, [k for k in params if k.startswith(variable_prefix)])))
 return params

def _clean_salt_variables ( params , variable_prefix = '__' ) : list ( list ( map ( params . pop , [ k for k in params if k . startswith ( variable_prefix ) ] ) ) ) return params
pops out variables from params which starts with variable_prefix .