Simplifying code to use format of select.error arguments that works in both Py27 and Py3
Adding test to for signal handling error