improve setup.py for python 3 (exclude mock pathlib)