Use mock_open and remove unnecessary stubbing of open.
Patch Data._data_path so it doesn't find the real data file.
Configure Travis.