How To Close Python Program With Multiple Functions