generalize the add_json_fields.py script and timeline code clean-up