kwargs is an dictionary, populated for every k and v in result of the method self.kwargs.items with:
kwargs = dict ( ( smart_text ( k , 'ascii' ) , v . resolve ( context ) ) for k , v in self . kwargs . items ( ) )