Unlock AI Capabilities: Practical Guide to Integrating GPT-4 and Other OpenAI Models into Python Applications