state load and saving in new pyglet-based editor