Hi Athanasios,
In a mididings script it is not recommended to have a main or init function, it's a particular need of mididings to be optimal.
Since it's Python, the script is parse from from the top to the end, that's why I load my json config right after the imports in order to be able to use my configuration dictionnary in the subsequent lines.
To have a Mididings script stable and optimal, is to have the Run section as the very last instruction of a script. It's a bad practice to put anything after the run() section at the end of a script.
Thanks ! :)
Stéphane Gagnon
Speak french / english