Python programs to predict survival on the Titanic