code: def _claim_in_progress_and_claim_channels(self, grpc_channel, channels):
          
          # first we get the list of all 'payments in progress' in case we 'lost' some payments.
          payments = self._call_GetListInProgress(grpc_channel)
          if (len(payments) > 0):
              self._printout("There are %i payments in 'progress' (they haven't been claimed in blockchain). We will claim them."%len(payments))
              self._blockchain_claim(payments)
          payments = self._start_claim_channels(grpc_channel, channels)
          self._blockchain_claim(payments)
docs: Claim all 'pending' payments in progress and after we claim given channels