Python Dependency Injection Example