Parametric g-formula implementations for causal survival analyses