'convert ip to subnet address'

def convert_ip_to_network(self):

    ip_list = self.addr.split('.')
    mask_list = self.get_wildcard_mask().split('.')
    for i in range(len(ip_list)):
        ip_list[i] = str(((int(ip_list[i]) & (~ int(mask_list[i]))) & 255))
    self.addr = '.'.join(ip_list)
