code: def write_data(self, key, data, tags=[], attrs={}):
          
  
          url = make_series_url(key)
          url = urlparse.urljoin(url + '/', 'data')
  
          #revisit later if there are server changes to take these into
          #account
          #params = {
          #    'tag': tag,
          #    'attr': attr,
          #}
          #url_args = endpoint.make_url_args(params)
          #url = '?'.join([url, url_args])
  
          dlist = [d.to_dictionary() for d in data]
          body = json.dumps(dlist)
          resp = self.session.post(url, body)
          return resp
docs: Write a set a datapoints into a series by its key.  For now,
          the tags and attributes arguments are ignored.
  
          :param string key: the series to write data into
          :param list data: a list of DataPoints to write
          :rtype: :class:`tempodb.response.Response` object