Flexible deep comparison, see https://code.google.com/p/python-deep/