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