Finalize Method In Python Example Code For Beginners