def _stripped(d):
 ret = {}
 for (k, v) in six.iteritems(d):
  if v:
   ret[k] = v
 return ret

def _stripped ( d ) : ret = { } for ( k , v ) in six . iteritems ( d ) : if v : ret [ k ] = v return ret
strip falsey entries .