code: def _parse_pages(self, unicode=False):
      
      if self.pageRange:
          pages = 'pp. {}'.format(self.pageRange)
      elif self.startingPage:
          pages = 'pp. {}-{}'.format(self.startingPage, self.endingPage)
      else:
          pages = '(no pages found)'
      if unicode:
          pages = u'{}'.format(pages)
      return pages
docs: Auxiliary function to parse and format page range of a document.