code: def movePage(self, pno, to = -1):
          
          pl = list(range(len(self)))
          if pno < 0 or pno > pl[-1]:
              raise ValueError("'from' page number out of range")
          if to < -1 or to > pl[-1]:
              raise ValueError("'to' page number out of range")
          pl.remove(pno)
          if to == -1:
              pl.append(pno)
          else:
              pl.insert(to-1, pno)
          return self.select(pl)
docs: Move a page to before some other page of the document. Specify 'to = -1' to move after last page.