Using Python For Regression Definition