update transient.py, split the main function into config() and data()