Generalized make_data.py