Generate Ols For Logistic Regression In Python