def base_url(self, version):
        host = self.request.headers.get('host', 'nohost')
        if "admin/api" in self.request.path:
            return self.request.scheme + "://" + host + "/admin/api/" + version
        else:
            return self.request.scheme + "://" + host + "/api/" + version
od.popitem() -> (k, v), return and remove a (key, value) pair.
dataset/ETHPy150Open twilio/stashboard/stashboard/handlers/restful.py/Controller.base_url--crossover with--dataset/ETHPy150Open baseblack/ReproWeb/3rdParty/python/ordereddict.py/OrderedDict.popitem