How To Close A Python Code