Python3 test discovery fix

Fix the test discovery for python setup.py test and fix a couple python3 syntax errors.   There is still quite a bit of work to do to finish the python3 port however.