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