結果 : python object get attribute if exists