Introduction
The Python Standard Library
bool
return
Scientific Packages
numpy.where()
Numerical Methods
scipy.optimize.leastsq