Fix tests for python3.x support
Change to use setuptools