'Return list of Page objects in this book'

def pages(self):

    ans = []
    for item in self.delegates:
        if isinstance(item, Main):
            for candidate in item.contents:
                if isinstance(candidate, Page):
                    ans.append(candidate)
            break
    return ans
