Use unittest.mock instead of standalone lib.

The mock librairy is now part of the Python standard library, available
as unittest.mock in Python 3.3 onwards.