old_contents: from httplib2 import Http
  import logging
  
  class Transport():
      def __init__(self, payload, config):
          logging.basicConfig(filename="/var/log/sse.log",
                              filemode='a',
                              format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
                              datefmt='%H:%M:%S',
                              level=logging.INFO)
  
          logging.info("Start transport")
  
          http = Http()
          url = config['host'] + ((":" + str(config['port'])) if config['port'] else "")
          resp, content = http.request(url, "POST", payload)
          resp = [resp['status'] or '', resp['content-length'] or '', resp['transfer-encoding'] or \
                 '', resp['server'] or '', resp['date'] or '', resp['content-type'] or '']
  
          logging.info("End transport: " + resp)
  
new_contents: from httplib2 import Http
  import logging
  
  class Transport():
      def __init__(self, payload, config):
          logging.basicConfig(filename="/var/log/sse.log", filemode='a',
                              format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
                              datefmt='%H:%M:%S', level=logging.INFO)
          logging.info("Start transport")
  
          http = Http()
          url = config['host'] + ((":" + str(config['port'])) if config['port'] else "")
          resp, content = http.request(url, "POST", payload)
          resp = [resp.get('status', ''), resp.get('content-length', ''),
                  resp.get('transfer-encoding', ''), resp.get('server', ''), 
                  resp.get('date', ''), resp.get('content-type', '')]
  
          logging.info("End transport: " + resp)
  
subject: update transport to use .get() for list keys