Fixed an error in rtmidi.py.