Linear Regression and Logistic Regression in Python