Logistic Regression Python Code From Amazon