[python] light refactor for stats collect #6941
+155
−35
Draft
Loading