AUTODIFF FTW
python interface to gradient