use scipy's optimizers rather than Rasmussen's, simply for less code...