There has to be a cleaner way of doing this. [`signal.pause`](https://docs.python.org/2/library/signal.html#signal.pause), perhaps?