The deepcopy of `np.sin` fails on my Python 3 installation. It tries to import `winreg` for some reason, which fails on Linux. It'll be good to get rid of the deepcopy stuff, it's caused a lot of weirdness.