Checks URLVoid.com for info on an IP address

def urlvoid_ip_check(ip):
    """Checks URLVoid.com for info on an IP address"""
    if not is_IPv4Address(ip):
        return None

    return_dict = {}
    headers = {'User-Agent': useragent}
    url = 'http://urlvoid.com/ip/%s/' % ip
    response = requests.get(url, headers=headers)
    data = BeautifulSoup(response.text)
    h1 = data.findAll('h1')[0].text
    if h1 == 'Report not found':
        return None
    elif re.match('^IP', h1):
        return_dict['bad_names'] = []
        return_dict['other_names'] = []
        for each in data.findAll('img', alt='Alert'):
            return_dict['bad_names'].append(each.parent.text.strip())
        for each in data.findAll('img', alt='Valid'):
            return_dict['other_names'].append(each.parent.text.strip())

    return return_dict