'The function for parsing network blocks from LACNIC whois data.
Args:
response: The response from the LACNIC whois server.
Returns:
List: A of dictionaries containing keys: cidr, start, end.'

def _get_nets_lacnic(self, response):

    nets = []
    for match in re.finditer('^(inetnum|inet6num|route):[^\\S\\n]+(.+?,[^\\S\\n].+|.+)$', response, re.MULTILINE):
        try:
            net = copy.deepcopy(BASE_NET)
            net['range'] = match.group(2).strip()
            temp = []
            for addr in match.group(2).strip().split(',    '):
                count = addr.count('.')
                if ((count is not 0) and (count < 4)):
                    addr_split = addr.strip().split('/')
                    for i in range((count + 1), 4):
                        addr_split[0] += '.0'
                    addr = '/'.join(addr_split)
                temp.append(ip_network(addr.strip()).__str__())
            net['cidr'] = ',    '.join(temp)
            net['start'] = match.start()
            net['end'] = match.end()
            nets.append(net)
        except ValueError:
            pass
    return nets
