結果 : define custom type python