pep8 formatting fixes for mock