Return proper exit code from pytest.main()