I need to rewrite the preamble section. Let me use a python script to make this change.