using unittest mock on Py3k

closes #732