'If <host> is None return the grand total of created connections;
otherwise return the total of created conns. for <host>.'

def get_connections_total(self, host=None):

    if (host not in self._hostmap):
        return 0
    values = (self._hostmap.values() if (host is None) else [self._hostmap[host]])
    return reduce(operator.add, map(len, (values or [[]])))
