結果 : check if class extends another python