def METHOD_NAME(self):
    if not self.state.txn:
        return
    if self.state.txn[-1] != "P":
        return
    if not any(i is None for i in self.state.txn):
        self.handle_txn(self.state.txn)
        self.state.txn = None