Added config file for pytest.
Converted test runners to py.test.