Moved IOPort to mido.ports and changed its constructor.