Matias
If you’re new to scripting in Ableton, this tool is a must.
It will not only save you a massive headache, but also allows you to learn how it works as you go since Remotify also gives you an uncompiled “.py” version of the files so you can have a look at the code.
This app will make basic mapping tasks a breeze.