create shared.write_files()

Summary: This saves us from manually opening lots of files in tests.

Reviewers: sean

Reviewed By: sean

Differential Revision: https://phabricator.buildinspace.com/D15