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 failures locally.