def _parse(self, data):
        h = StringIO(data)
        
        result = {}
        for line in h.readlines():
            try:
                key, value = self._parse_line(line)
                result[key] = value
            except ValueError:
                pass # ignore broken lines

        return result
Parse the output from the 'mntr' 4letter word command
dataset/ETHPy150Open francelabs/datafari/debian7/zookeeper/src/contrib/monitoring/ganglia/zookeeper_ganglia.py/ZooKeeperServer._parse