Create write_meta.py