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

Similar to previous comment, strip out options like `debug`. (Seems like you might not have finished converting this from Yorick, given the `&grd` in the function arguments?)