結果 : python when to use inheritance