Logistic Regression Python Step Through Code