initial phase of porting LASSO R code to python.