[python] simplify `custom code`
[python] simplify `custom code`

novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection,novifinancial/serde-reflection