proposed bugfix for https://github.com/crleblanc/PyIrToy/issues/1.  Switching back to sampling mode when finished transmitting an IR code.  Should fix the problem of dropping the serial device.