test doubles for Python