Python Gradient Boosting Algorithm