How to control the XTA from a python script version scope