Eg turn this into a function and try wrapping this instead:auto intp = interpreter(dmdEngine());
Thanks for your help. I'm doing this in my spare time which is, unfortunately, not much.
I did what you said
export { auto intp = interpreter(echoEngine); }
but when I import drepl from python idle I still can access intp.