code: def buildURL(self, action, **query):
          
          base = urllib.parse.urljoin(self.server.base_url, action)
          return appendArgs(base, query)
docs: Build a URL relative to the server base_url, with the given
          query parameters added.