code: def _get_last_state(self, state_file):
          
          state = None
          fp = open(state_file)
          try:
              state = int(fp.read())
              print("Found previous state: %d" % (state,))
          finally:
              fp.close()
          return state
docs: Checks the given path for the last exported comment's id