Finalize Method In Python Example Codes