This is great, thanks. Especially since the WordReference workflow won't work for those of us who didn't get an API.
I added another script filter to let me just type in the three-letter language codes myself, if I want, with keyword ".trans" and script:
python translate.py {query}
So I can just type ".trans eng fra word" and get an output.