結果 : create a custom type python