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

No problem erasing this! This does set values <= 0 to 1, but I can just do that without calling this.