L1 Regularization Python Code