'Get ZooKeeper server stats as a map'

def get_stats(self):

    data = self._send_cmd('mntr')
    if data:
        return self._parse(data)
    else:
        data = self._send_cmd('stat')
        return self._parse_stat(data)
