[PATCH v2 24/26] Task: add HostAPI methods required by PyRecipes