I\'m having a bit of difficulty running a python command at the end of a function. Basically, I have a UI that takes curves and writes them to json files. At the end of my w