How To Disconnect One Code From Another In Python