fix openravepy statesaver garbage collection problem