fix python parameter check. need test by ray.