Launch Python from Listary

I just configured several search engines on Listary and it’s really helpful. How the {query} works kinda inspired me whether it’s possible for me to use Listary as a user input box and pass that {query} to a local Python code? That will be super helpful for me. Thanks