def get_namespace(self, namespace, lowercase=True, trim_namespace=True):
        rv = {}
        for k, v in iteritems(self):
            if not k.startswith(namespace):
                continue
            if trim_namespace:
                key = k[len(namespace):]
            else:
                key = k
            if lowercase:
                key = key.lower()
            rv[key] = v
        return rv
Transform list of completions from ensime API to a the structure
dataset/ETHPy150Open pallets/flask/flask/config.py/Config.get_namespace--crossover with--dataset/ETHPy150Open ensime/ensime-sublime/ensime.py/Completer._completion_response