When Finalize Method Example In Python Coder