is there a module to read midi input (live) with python?
I used PyPortMidi successfully in 2006 to record Midi input in real time (on OS X). It should work on Windows, OS X, and Linux. It was very light on the processor side, which was great!
I had this discussion like ages ago once, and the consensus kinda ended up on using MidiShare, which has Python bindings. But things may have moved on since then, that was like 2004 or something. So it's not a recommendation, just a "check it out".