def _save_state(self, state_file, last_pk):
fp = open(state_file, '<STR_LIT>')<EOL>try:<EOL><INDENT>fp.write(str(last_pk))<EOL><DEDENT>finally:<EOL><INDENT>fp.close()<EOL><DEDENT>
Saves the last_pk into the given state_file