code: def _state_removal_solve(self):
          
          initial = sorted(
              self.mma.states,
              key=attrgetter('initial'),
              reverse=True)[0].stateid
          for state_k in self.mma.states:
              if state_k.final:
                  continue
              if state_k.stateid == initial:
                  continue
              self._state_removal_remove(state_k.stateid)
  
          print self.l_transitions
          return self.l_transitions
docs: The State Removal Operation