Finalize Method In Python Example Codes For Loggable Interface