Building a Python AI Agent from Scratch: ReAct Loop Implementation That Actually Works on September 23, 2025 labthecode python ai agent +