Lipschitz Continuous Gradient Function In Python Example