Dot Product Using Python For Regression