From Kaplan-Meier curves to hazard ratios with runnable Python Code throughout