it is entirely possible that the best way to send and receive midi signals from python is with pygame and that's hilarious