結果 : dynamically create method python