結果 : python check if instance of base class