Fix py26 compatibility issue, add mock to tox