結果 : check if function exists in class python