fix pep8 formatting for tests

added raw string handler to ``__init__.py``
reformatted all tests and mocks
added pep8 checks for test dir into tox.ini