Should be "w.get_state()"