Create open_state.py