adding fmin call to Trials to match IPythonTrials