def get_names(soup):
    """Parses HTML file for contact names from the <title></title>."""
    title = soup.find('title').text
    if 'to' in title:
        return (name.strip() for name in title.split(' to'))
    else:
        return ("Me", title)