Package up the RPython bits into the target function.