Jazz Piano Trainer
This is a desktop application that might help you learn modes and chords ;) You can use your midi keyboard to input notes.
The application is using midio, python-rtmidi, pygame and tkinter libraries.
Here you can watch a video on how this application was created: https://www.youtube.com/watch?v=WCQai649s_Q