Don't use mock_open because it's not available in all of our supported OSes.
Merge branch 'rbarlow-fix_mock_open' into distributed-tasks
Merge branch 'distributed-tasks' into barnabycourt-repo-publish-fix
Update for tests missing from tasks and cleanup of dead code