def clean_index(soup):
  """Removes the HTML table from the index page, leaving just lists of APIs."""
  uls = soup.find_all('ul')
  for child in soup.find('div', class_='sphinx-reference').children:
    child.extract()
  for ul in uls:
    soup.find('div', class_='sphinx-reference').append(ul)
  return soup