Not too significant, but if you plan to use a lot of variables in the future, you should prefix them with something like spyscript. Example: %Spyscript.room.
So at the end of the script you can just do unset %spyscript.* ( The prefix can be anything, but im not sure if you already have something prefixed with spy ).
Just a thought ;)