Update test/test.py to more modern python standards, fix local build import paths to remove hardcoding.