Modify signal pause & pep8

I think signal.pause() to wait for a signal to be received. But not need while True. And modify 2 pep8:E501 and E302