Graceful platform for test doubles in Python (mocks, stubs, fakes, and dummies)