Added type check to portmidi.Output.send().