Execute Python code for LLM