結果 : how to check if python object has attribute