landingPage = urllib.request.urlopen('somepage.com').read()
soup = BeautifulSoup(landingPage)
pageList = soup.find('div', {'id': 'pages'})
page = pageList.find('li', {'class': 'active'})
Access next sibling <li> element with BeautifulSoup