Create a Python execution tool that allows Ava to run Python code snippets.
Ava is a Telegram bot agent (Omni/Agent/Telegram.hs) that needs to execute Python code for data processing, API calls, and automation tasks as part of customer acquisition for PodcastItLater.
1. Create Omni/Agent/Tools/Python.hs module
2. Tool name: python_exec
3. Execute Python snippets via subprocess
4. Capture stdout/stderr and return as result
5. Timeout after 30 seconds
6. Available stdlib: requests, json, csv, re, datetime, urllib
{
"name": "python_exec",
"parameters": {
"code": "string (required) - Python code to execute",
"timeout": "integer (optional) - timeout in seconds, default 30"
}
}