Inherit MockWithCmp from Mock instead of MagicMock

This patch changes the base class for MockWithCmp and implements necessary
methods to compare instances, because mock.MagicMock in python 3 raises
NotImplemented exception on __lt__, __gt__, etc.

Change-Id: I56f774a5bc27726dae66acb70bf12bc618cb96fb