Added example_ioport.py and fixed a but in IOPort.send().