Added a new function to mido.ports.