def clean_kwargs(**kwargs):
 ret = {}
 for (key, val) in six.iteritems(kwargs):
  if (not key.startswith('__')):
   ret[key] = val
 return ret

def clean_kwargs ( ** kwargs ) : ret = { } for ( key , val ) in six . iteritems ( kwargs ) : if ( not key . startswith ( '__' ) ) : ret [ key ] = val return ret
return a dict without any of the __pub* keys from the kwargs dict passed into the execution module functions .