Updating survival.py