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

FYI `np.zeros_like(ddt.data)` would work well here.