perf: optimize code in merge default info and py info
The use of to_list is removed and both merging method is simplified. The default value of managers is changed to [].
The use of to_list is removed and both merging method is simplified. The default value of managers is changed to [].