結果 : python check if instance inherits from class