Python Application Architecture Openai