I need to do the same. I need to run some scripts in python, and would be awesome to do it in n8n, but I do not want to do trough a custom n8n deploy.
like in node there is a list in a environment
NODE_FUNCTION_ALLOW_BUILTIN=crypto
something like that.