Fix unittest.mock on Travis

Travis runs Ubuntu 12.04 LTS, which uses Python 3.2 by default and doesn't have unittest.mock.