結果 : python check if class method exists