I think this package provides functions to create midi files only. Realtime MIDI playing is not yet included. If you want to send short MIDI commands to a MIDI device, take a look at the python MIDI extension that I wrap around the Win32 MIDI functions. It is still very limited, but is able to send short MIDI message. I hope to wrap all the MIDI API in Windows. Stay tuned.
http://qoolife.com/csw-services/Software/midi.html
http://qoolife.com/csw-services/Software/midi.html