Unfortunately, youn cant do that, Pythonista doesn't provide access to iOS APIs like Core MIDI.