結果 : python check if method exists in class