Dependency injection system for Python