Python dependency injection framework to make unittesting easier