Partial Least Squares Python Snake