Lipschitz Continuous Gradient Function In Python Definition