Asynchronous Loop Python Command To End Program