Use unittest.mock if exists.

mock is not updated recently and don't support Python 3.4.
For example: https://code.google.com/p/mock/issues/detail?id=234

Use `unittest.mock` in standard library if exists.