Passing Lambda As Parameter Python