def _remove_dots(src):
 output = {}
 for (key, val) in six.iteritems(src):
  if isinstance(val, dict):
   val = _remove_dots(val)
  output[key.replace('.', '-')] = val
 return output

def _remove_dots ( src ) : output = { } for ( key , val ) in six . iteritems ( src ) : if isinstance ( val , dict ) : val = _remove_dots ( val ) output [ key . replace ( '.' , '-' ) ] = val return output
remove the dots from the given data structure .