catch more python exceptions in rpi-gpio