fix test for python3, pep8 spacing