Taming LLM Responses: Dynamic Pydantic Models for Flexible Structured Output