Fix pep8 issues in shares test suites