Python3 pep8 fixes

I am seeing these pep8 failures in the test suite only with python3. Because print isn't a function in python2? Travis does not run pep8 on python3 so I only see this fail locally
Merge pull request #3672 from jenshnielsen/pep8_fixes

PEP8 : Python3 pep8 fixes