Max Compute Function In Python Definition