linear regression from scratch using python