code: def get_base_url(self):
          
          return "http://{hostname}:{port}/{api}".format(
                  hostname=self.hostname,
                  port=self.port,
                  api=self.api_version)
docs: >>> c = Cube('cube.mydomain.com')
          >>> print(c.get_base_url())
          http://cube.mydomain.com:1081/1.0