code: def _object_set_to_state_list(self, objectset):
          
          state_list = []
          for state in list(objectset):
              state_list.append(state.stateid)
          return state_list
docs: Args:
              objectset (list): A list of all the DFA states (as objects)
          Return:
              list: A list of all the DFA states (as identifiers)