Python Program For Regularization Contract