Modify tuple example in python survival kit