#NEWLINE# def clean_kwargs( **kwargs ) : #NEWLINE# #INDENT# '\n    Return a dict without any of the __pub* keys (or any other keys starting\n    with a dunder) from the kwargs dict passed into the execution module\n    functions. These keys are useful for tracking what was used to invoke\n    the function call, but they may not be desierable to have if passing the\n    kwargs forward wholesale.\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , val ) in six . iteritems ( kwargs ) : #NEWLINE# #INDENT# if ( not key . startswith ( '__' ) ) : #NEWLINE# #INDENT# ret [ key ] = ret #NEWLINE# #UNINDENT# #UNINDENT# return ret