Linear Regression Syntax Python Def