Close Method In Python Programming