@user2883071 It seems you are trying do do scripting. Python is fine for that. You can of course write a library that helps with common patterns. I don't think you'll have much success with a special workflow language because what you are doing sounds too specialized.