def _ip_range_splitter(ips, block_size=256):
    """Yields blocks of IPs no more than block_size elements long."""
    out = []
    count = 0
    for ip in ips:
        out.append(ip['address'])
        count += 1
        if count > block_size - 1:
            yield out
            out = []
            count = 0
    if out:
        yield out
