Use WITH_PYTHON in group scheduler