code: def post_events(self, events):
  
          
  
          url = "{0}/{1}/projects/{2}/events".format(self.base_url, self.api_version,
                                                     self.project_id)
          headers = utilities.headers(self.write_key)
          payload = json.dumps(events)
          response = self.fulfill(HTTPMethods.POST, url, data=payload, headers=headers, timeout=self.post_timeout)
          self._error_handling(response)
          return self._get_response_json(response)
docs: Posts a single event to the Keen IO API. The write key must be set first.
  
          :param events: an Event to upload