dependency injection helpers for Python