Linear Regression Functions In Python