Python library for dependency injection support