Python Fastapi Dependency Injection Pattern