write_sbs_data_files.py can now be called from its main(...) function.

This avoids unnecessary subprocess calls.