That's one of those ideas that make me wonder why I haven't done it
long ago. Very cool.
At least some of the others, like _cont, self, defined,etc., are just
variables within the Kid template. Is it essential to filter those
out? If so you may just have to keep a list of them around and update
it as the Kid internals change. Right now I don't think there is a
pattern for filtering them out.
One thing I have thought of doing for another reason in making a
magical __kidbuiltins__ variable that contains the things Kid
magically puts in a template's score. This still would not contain
things like _cont, which are local variables in the generated Python
code.
David Stanek