Updating Python textbook