If there is no obvious solution to do it the right way, I will just copy the map i linked to above and make a dict in my python script. Not so beautiful, but it will work for now.
Thanks anyway.
The issue is that the frontend and backend are separated. They talk to each other, but i’m not sure if the backend has access to that aspect of the front end. You’d need to talk to someone who has intimate knowledge of both the front and backend.