def filter_none(**kwargs):
 return dict(((k, v) for (k, v) in six.iteritems(kwargs) if (v is not None)))

def filter_none ( ** kwargs ) : return dict ( ( ( k , v ) for ( k , v ) in six . iteritems ( kwargs ) if ( v is not None ) ) )
remove any entries from a dictionary where the value is none .