<br />Just to say, I think this is mainly related to Lin-Audio-Dev, so I wont be sending to lin-user in furthur replies..
<br />And on the topic for a second, python bindings exist for MidiDings, a module that can use both AlsaSeq & Jack Midi.
<br />I have a very limited amound of experince with it, as i found the AlsaSeq python package to be much simpler to use.
<br />(It does however not support Jack Midi.) Might i suggest to use AlsaSeq first if this is your first Python/Midi project,
<br />despite there only being a few demos/tutorials for AlsaSeq, its a great way to get acces to the Alsa Sequencer.
<br />AlsaSeq also has a "Helper-Module", called alsamidi, which helps creating messages in a generic & easy way without
<br />getting your hands dirty in Midi bytes, commands & the likes. (it comes with the AlsaSeq tarball, so you'll get it automatically.)
<br />Cheers, -Harry