dx-workflow-to-applet: made things more Pythonic