[python] light refactor for stats collect #6941
+226
−40
Merged
Loading