magic mocks are not json-serializable on python2.6