Fix deployment problem...
When deployed with https://gitlab.esss.lu.se/nice/guis/ansible/ics-ans-wp12-opi.git, interface macros are not defined in macros.xml file. Fair enough...
However, the source code is reeeally deployment-dependent:
file = os.path.join(directory, "../../../../mainDisplays/{}/scripts/devices.xml".format(chopper_area))
There should be a better way to make this, but for now this solves the problem.