Nope. This is not about "live coding." It is just about creating MIDI - live or not. I do reference the modules you can use for real-time operation: MIDI::RtMidi::FFI::Device and MIDI::RtMidi::ScorePlayer :)
You might have a look at the O'Reilly book from August 2, 2017: "Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript" 2nd Edition