Import mock from unittest for python3.4
Fix issues with python3.4 and add pypy.