Merge core.py with various ...toolbox...py files

Ok, both here and elsewhere I spent varying amounts of time tracing back which options were turned on. I think debug is used, but I haven't yet seen what it does. With the &grd, I wanted to make sure what was happening with it before translating it. I thought that was a pointer but I just saw on my cheat sheet that it is actually a dummy argument. I  Similarly there are some h_sets that I was waiting to decide on.