@JonB - CoreMIDI framework is not linked into Pythonista so I needed to NSBundle it in.
I don't know when this trick with NSbundle came to light but it was only recently. It effectively allows you to load dynamic libraries into the namespace of the app which is a non-obvious usage. I think it is intended just to load "resources" like images and such. I don't know.