Remove a bunch of warnings using a numpy hook.