Clean up all modulestore testcases

fix pep8 and pylint violations

Move modulestore config for tests to an importable location