curve fit linear regression python