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

Hate to make you erase code, but let's delete this file entirely and just replace all calls to `invert_var(x)` with `1. / x`. Numpy automatically works: `1./0.` is Inf and `1./inf` is zero.