Close Method In Python Example