kwargs_safe is a dictionary created for every k and v in result of the function six.iteritems called with an argument kwargs,
kwargs_safe = dict ( ( k , conditional_escape ( v ) ) for ( k , v ) in six . iteritems ( kwargs ) )