savestate after editing pathfinder and creategrid.py