Rolling backport of unittest.mock for all Pythons
